質問編集履歴
1
権限の付与はできるようになりました
title
CHANGED
File without changes
|
body
CHANGED
@@ -17,13 +17,34 @@
|
|
17
17
|
③mysql をアンインストール
|
18
18
|
|
19
19
|
④権限の付与
|
20
|
+
|
21
|
+
ユーザーの作成、確認まで行権限の付与も完了していますが、特に変化なし。
|
22
|
+
|
23
|
+
|
20
24
|
```
|
25
|
+
mysql> SELECT Host, User FROM mysql.user;
|
26
|
+
+-----------+------------------+
|
27
|
+
| Host | User |
|
28
|
+
+-----------+------------------+
|
29
|
+
| % | testuser |
|
30
|
+
| localhost | mysql.infoschema |
|
31
|
+
| localhost | mysql.session |
|
32
|
+
| localhost | mysql.sys |
|
33
|
+
| localhost | root |
|
34
|
+
+-----------+------------------+
|
35
|
+
5 rows in set (0.00 sec)
|
36
|
+
|
21
|
-
GRANT ALL PRIVILEGES ON *.* TO '
|
37
|
+
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION;
|
38
|
+
Query OK, 0 rows affected (0.00 sec)
|
39
|
+
|
40
|
+
mysql> FLUSH PRIVILEGES;
|
41
|
+
Query OK, 0 rows affected (0.00 sec)
|
42
|
+
|
43
|
+
mysql> CREATE DATABASE DictationManager;
|
44
|
+
ERROR 3680 (HY000): Failed to create schema directory 'DictationManager' (errno: 2 - No such file or directory)
|
45
|
+
mysql> create database DictationManager;
|
46
|
+
ERROR 3680 (HY000): Failed to create schema directory 'DictationManager' (errno: 2 - No such file or directory)
|
22
47
|
```
|
23
|
-
→下記のようなエラー
|
24
|
-
```
|
25
|
-
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IDENTIFIED BY '*********' WITH GRANT OPTION' at line 1
|
26
|
-
```
|
27
48
|
参考記事
|
28
49
|
|
29
50
|
https://teratail.com/questions/271365
|