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:

host=;port=3306;user id=mysqltest;password=Password123;database=mysqldb;

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