MySqlConnectionSpecifying TCP port

Server=myServerAddress;Port=1234;Database=myDataBase;Uid=myUsername;
Pwd
=myPassword;

The port 3306 is the default MySql port.

The value is ignored if Unix socket is used.

Connecting

This connection string (Specifying TCP port using MySqlConnection) can be used for connections to MySQL.

Articlesread all »

Not the right connection string for you?

Start over in the connection string reference index.

You can also get help in the Q&A forums where you can ask your own question.

The kb articles contains how-tos and instructions and you can search for anything if you're not sure were to look.