Last answered:

16 Nov 2022

Posted on:

15 Nov 2022


mysql connection refused in jupyter notebook

While I was able to connect to mysql from an IDE, in jupyter notebook I am getting the following error message:

OperationalError: (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)")

Your help is much appreciated!

1 answers ( 0 marked as helpful)
Posted on:

16 Nov 2022


Hi Florian!
Thanks for reaching out.

You need to start the server. You can do that in the Windows services. Open it, find the MySQL entry (MySQL 80 or similar) and start the service. Try reconnecting afterwards.

Hope this helps.

Submit an answer