Trying to add mysql compatibility, but am a bit lost

Hi all, first want to say I am glad to be here! Parse looks really cool and look forward to working with it.

I am trying to use the GitHub - dplewis/parse-server-mysql-adapter: MySQL Adapter for Parse Server to a mysql rds(aws) database. I setup the index.js, but am a bit confused on how to install the adapter, and couldn’t really find clear documentation on it. Do I just download the files to the public folder? Also the git looks pretty old, is there anything else out there to work with mysql?

I just need to know really how to install an adapter like this?

It’ documented on github page for how to add that adapter in here

Before everything, run this command npm install parse-server-mysql-adapter

const uri = 'mysql://[email protected]:3306/database_here'; //Your database connection uri 
const MySQL = require('parse-server-mysql-adapter').MySQL;
const mysql = new MySQL(uri);

var api = new ParseServer({
  databaseAdapter: mysql.getAdapter(),
  appId: 'myAppId',
  masterKey: 'myMasterKey',
  serverURL: 'http://localhost:1337/parse',

And copy this code. That’s it.

Edit: However I dont recommend you to use this adapter. Its not officially supported and latest parse server functionalities may not work as expected or may not work at all.

1 Like