How can I use MySQL on Glitch?


#1

I’m trying to create a MySQL database using the Glitch console. I’ve noticed that although all of the commands are present, running mysql fails:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Is there any way to use MySQL on Glitch, or do I have to use an external MySQL server?


#2

We’d recommend using a third-party service for this, but if you supply your project name then we can take a closer look. Thanks.


#3

stupid-pantry
Thanks for getting back to me!


#4

Since you’re using Sequelize, if you don’t specifically care about getting MySQL going but just getting the imported code going, then using one of its other supported DBs like SQLite will work: https://glitch.com/edit/#!/opalescent-epoch


#5

Thank you very much :smile: