質問編集履歴
2
2
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,12 +3,9 @@
|
|
3
3
|
|
4
4
|
###発生している問題・エラーメッセージ
|
5
5
|

|
6
|
-
```
|
7
6
|
|
8
|
-
###該当のソースコード
|
9
|
-
```Python
|
10
7
|
|
11
|
-
|
8
|
+
```python
|
12
9
|
import MySQLdb
|
13
10
|
|
14
11
|
connection = MySQLdb.connect(host="10.0.2.15",db="bas",user="user",passwd="pass",charset="utf8")
|
@@ -28,5 +25,8 @@
|
|
28
25
|
|
29
26
|
|
30
27
|
|
28
|
+
|
29
|
+
|
30
|
+
|
31
31
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
32
32
|
Raspberry Pi 3
|
1
1
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
1Raspberry Pi から virtualBoxのMysqlへ接続
|
body
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
connection = MySQLdb.connect(host="10.0.2.15",db="bas",user="user",passwd="pass",charset="utf8")
|
15
15
|
|
16
16
|
cursor = connection.cursor()
|
17
|
-
|
17
|
+
|
18
18
|
cursor.execute("select * from bass")
|
19
19
|
result = cursor.fetchall()
|
20
20
|
|