Skip to Page NavigationSkip to Page NavigationSkip to Content

Keystone now supports MySQL

Published on June 30th, 2022 by Dinesh Pandiyan

We've added support for MySQL to Keystone's list of database providers, bringing the total number of supported database types to three.

Here's an example db.config to work with MySQL database.

export default config({
db: {
provider: 'mysql',
url: 'mysql://dbuser:dbpass@localhost:3306/keystone',
idField: { kind: 'uuid' },
},
...
});

There are some differences in how Postgres and MySQL operate so be sure to checkout our new choosing the right database guide.

For more info, check out our Pull Request - Add support for MySQL.

If you like using Keystone, we'd appreciate a shout out in Twitter and a star in GitHub.