質問編集履歴
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,8 +4,60 @@
|
|
4
4
|
|
5
5
|
```ここに言語を入力
|
6
6
|
|
7
|
-
mysql>CREATE USER scraper@localhost IDENTIFIED BY 'password';
|
8
7
|
|
9
|
-
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 ':
|
10
8
|
|
9
|
+
(base) kobayashishunnoMacBook-Pro:~ kobayashitakashi$ mysql -u root -p
|
10
|
+
|
11
|
+
Enter password:
|
12
|
+
|
13
|
+
Welcome to the MySQL monitor. Commands end with ; or \g.
|
14
|
+
|
15
|
+
Your MySQL connection id is 14
|
16
|
+
|
17
|
+
Server version: 8.0.15 Homebrew
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
Oracle is a registered trademark of Oracle Corporation and/or its
|
26
|
+
|
27
|
+
affiliates. Other names may be trademarks of their respective
|
28
|
+
|
29
|
+
owners.
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
mysql> CREATE DATABASE scraping DEFAULT CHARACTER SET utf8mb4;
|
38
|
+
|
39
|
+
Query OK, 1 row affected (0.00 sec)
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
mysql> SELECT USER, HOST, PASSWORD FROM MYSQL.USER;
|
44
|
+
|
45
|
+
ERROR 1054 (42S22): Unknown column 'PASSWORD' in 'field list'
|
46
|
+
|
11
|
-
CREATE USER scraper@localhost IDENTIFIED BY 'password'
|
47
|
+
mysql> CREATE USER 'scraper'@'localhost' IDENTIFIED BY 'password';
|
48
|
+
|
49
|
+
ERROR 1396 (HY000): Operation CREATE USER failed for 'scraper'@'localhost'
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
```
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
scraperが存在しなっかたので上記のコードを試したところエラーが発生しました。
|