parse-server-mysql-adapter icon indicating copy to clipboard operation
parse-server-mysql-adapter copied to clipboard

Unable to ensure uniqueness for usernames: Parameter "url" must be a string, not object

Open tiavina-mika opened this issue 4 years ago • 2 comments

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, }); ` image

image

tiavina-mika avatar Feb 01 '21 15:02 tiavina-mika

+1

badboy-tian avatar Oct 30 '21 03:10 badboy-tian

@badboy-tian I’ll look into this issue within the week. What version of MySQL are you using?

dplewis avatar Oct 30 '21 03:10 dplewis