回答編集履歴
1
パスワードを質問者さんに合わせた
answer
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
```python
|
6
6
|
import pymysql
|
7
7
|
|
8
|
-
cnct = pymysql.connect(host="localhost", user="root", password="
|
8
|
+
cnct = pymysql.connect(host="localhost", user="root", password="root")
|
9
9
|
cur = cnct.cursor()
|
10
10
|
|
11
11
|
cur.execute("SHOW DATABASES;") # データベース名取得
|