Hey Felipe,

My guess is that the binder instance doesn't have MySQL installed.
-Paul

On Thu, Oct 15, 2020 at 10:06 AM Felipe Augusto Pereira de Figueiredo <
[email protected]> wrote:

> Dear All,
>
> I'm trying toexecute the following piece of code on a Jupyter notebook
> running on Binder, however, I always get an error ""DatabaseError: 2003
> (HY000): Can't connect to MySQL server on 'localhost' (99)"."
> <https://stackoverflow.com/posts/64345691/timeline>
>
> Could someone tell me why is this code failling?
>
> This is the code:
> import mysql.connector as mysql
> db = mysql.connect( host = 'localhost', user = "root", passwd='root' )
>
> What could be the problem? What could I be missing? Is there any necessary
> configuration before opening the DB?
>
>
> Thanks and Kind Regards.
>
>
> Felipe Augusto
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jupyter/aa32957e-214e-47bb-abef-80f1178e54e9n%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/aa32957e-214e-47bb-abef-80f1178e54e9n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CADT3MECZM2Lay5Z03iGOYSTL9mNAmhTess1%2BGC0y-vWhsT2hXw%40mail.gmail.com.

Reply via email to