Bonjour,
Je viens aupres de votre commnauté pour solliciter une aide: je travail sur un projet et jai besoin de me connecter sur mysql mais j’obtiens toujours cet erreur " ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) " lorsque je tape a la console de glitch: mysql -u root
Jai installé le paquet mysql dans mon fichier package.json
Note that the npm mysql package only installs the code that lets Node talk to MySQL, it does not install MySQL itself. So you would need to point it at a MySQL server that you can access through the internet, and then connect to that by using the correct host, port, username, and password. (Which you will probably want to store in your .env file so that you don’t expose sensitive data to the entire world =)