parse-server-mysql-adapter
parse-server-mysql-adapter copied to clipboard
Unable to ensure uniqueness for usernames: Parameter "url" must be a string, not object
hello.
I've got this error when connecting to the database: Unable to ensure uniqueness for usernames: Parameter "url" must be a string, not object
here is my code: ` const MySQL = require('parse-server-mysql-adapter');
const mysql = new MySQL('mysql://c1439623d_dev:xxxxx@localhost:3306/dev');
const parseServerAPI = new ParseServer({
databaseURI: mysql.getAdapter(),
cloud: path.resolve(__dirname, 'server/cloud/main.ts'),
appId: APP_ID,
masterKey: MASTER_KEY,
serverURL: SERVER_URL,
appName: APP_NAME,
});
`
+1
@badboy-tian I’ll look into this issue within the week. What version of MySQL are you using?