How can I use MySQL on Glitch?

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?

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.

stupid-pantry
Thanks for getting back to me!

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

1 Like

Thank you very much :smile: