Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection string isn't working #6068

Open
craigcosmo opened this issue May 7, 2024 · 0 comments
Open

connection string isn't working #6068

craigcosmo opened this issue May 7, 2024 · 0 comments

Comments

@craigcosmo
Copy link

craigcosmo commented May 7, 2024

connection string isn't working

This is how I connect to db

export const kx = knex({
	client: 'mysql2',
	connection: {
		connectionString: 'mysql://root:kilo@localhost:3306/opdb',
	},
})

I got error

Ignoring invalid configuration option passed to Connection: connectionString. 
This is currently a warning, but in future versions of MySQL2, 
an error will be thrown if you pass an invalid configuration option to a Connection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant