I try to replace SQLite by MariaDB on Jupyter Hub. In the Jupyter Hub configuration file I changed:
#c.JupyterHub.db_url = 'sqlite:///jupyterhub.sqlite'
by
c.JupyterHub.db_url = 'mysql+pymysql://{}:{}@{}/{}{}'.format("username","pwd","localhost","jupyterhub","")
I've created an empty database "jupyterhub" with PhpMyAdmin, but when I launch Jupyter Hub, I have the following error message :
Failed to connect to db: mysql+pymysql://username:pwd@localhost/jupyterhub
"Username" and "pwd" are good, they work with PhpMyAmdin.
I've tried several things but no luck. Any idea ?