LinkMenuExpand(external link)DocumentSearchCopyCopied


MySqlConnector uses a connection string in order to connect to your database.

To connect to a database on localhost port 3306 with a user mysqltest, password Password123, and default schema mysqldb, the connection string would be:

Server=localhost;Port=3306;User ID=mysqltest;Password=Password123;Database=mysqldb

For all connection string options, view the Connection Options Reference.