The following article describes the experiences of MySQL connection strings. If you are interested in the actual operations related to MySQL connection strings, you can click to view the following articles. I hope it will help you in this regard. 1. MySQLConnectorODBC2.50 (mydbc2.cv50) connection method 1. Local Database Connection
The following article describes the experiences of MySQL connection strings. If you are interested in the actual operations related to MySQL connection strings, you can click to view the following articles. I hope it will help you in this regard. I. MySQL Connector/ODBC 2.50 (MyODBC 2. cv50) connection method 1. Local Database Connection
The following article describes the experiences of MySQL connection strings. If you are interested in the actual operations related to MySQL connection strings, you can click to view the following articles. I hope it will help you in this regard.
I. MySQL Connector/ODBC 2.50 (MyODBC 2. cv50) Connection Method
1. Local Database Connection
- Driver={MySQL};Server=localhost;Option=16834;Database=myDataBase;
2. Remote Data Connection
- Driver={MySQL};Server=myServerAddress;Option=131072;Stmt=;Database=myDataBase; User=myUsername;Password=myPassword;
3. Special TCP/IP Port connection
Note: The default port of this Driver is 3306. If it is not specified in the MySQL connection string, port 3306 is connected to MySQL.
- Driver={MySQL};Server=myServerAddress;Port=3306;
Option=131072;Stmt=;Database=myDataBase; User=myUsername;Password=myPassword;
Ii. MySQL Connector/ODBC 3.51 (MyODBC 3.51) Connection Mode
1. Local Database Connection
- Driver={MySQL ODBC 3.51 Driver};Server=localhost;
Database=myDataBase; User=myUsername;Password=myPassword;Option=3;
2. Remote Data Connection
- Driver={MySQL ODBC 3.51 Driver};Server=data.domain.com;
Database=myDataBase;User=myUsername; Password=myPassword;Option=3;
3. Special TCP/IP Port connection
Note: The default port of this Driver is 3306. If it is not specified in the MySQL connection string, port 3306 is connected to MySQL.
- Driver={MySQL ODBC 3.51 Driver};Server=data.domain.com;Port=3306;
Database=myDataBase;User=myUsername; Password=myPassword;Option=3;
4. Special Character Set connection
- Driver={MySQL ODBC 3.51 Driver};Server=data.domain.com;
charset=UTF8;Database=myDataBase;User=myUsername; Password=myPassword;Option=3;
Iii. ole db, OleDbConnection (. NET) Connection Method
1. Standard connection
- Provider=MySQLProv;Data Source=mydb;User Id=myUsername;Password=myPassword;
The above content is part of the summary of the MySQL connection string, hoping to help you in this regard.