Skip to content

Commit a3f29d6

Browse files
committed
Try to connect to local service.
1 parent 949dcfe commit a3f29d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/sesion1.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
},
7979
"outputs": [],
8080
"source": [
81-
"!sudo mysql -e \"ALTER USER 'root'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY 'root'\""
81+
"!sudo mysql -h 127.0.0.1 -P 3306 -e \"ALTER USER 'root'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY 'root'\""
8282
]
8383
},
8484
{
@@ -143,7 +143,7 @@
143143
"outputs": [],
144144
"source": [
145145
"import os\n",
146-
"db_hostname = os.getenv('DB_HOSTNAME') or \"127.0.0.1\" if RunningInCOLAB else \"mysql\""
146+
"db_hostname = os.getenv('DB_HOSTNAME') or \"127.0.0.1\" if RunningInCOLAB else \"127.0.0.1\""
147147
]
148148
},
149149
{

0 commit comments

Comments
 (0)