[Database connection string] MySQL connection string

Source: Internet
Author: User
Myodbc
 
Myodbc 2.50 local database
Driver = {MySQL}; server = localhost; option = 16834; database = mydatabase;
   
Myodbc 2.50 remote database
Driver = {MySQL}; server = myserveraddress; Port = 3306; option = 131072; stmt =; database = mydatabase; uid = myusername; Pwd = mypassword;
   
Myodbc 3.51 local database
Driver = {MySQL ODBC 3.51 driver}; server = localhost; database = mydatabase; user = myusername; Password = mypassword; option = 3;
   
Myodbc 3.51 remote database
Driver = {MySQL ODBC 3.51 driver}; server = data.domain.com; Port = 3306; database = mydatabase; user = myusername; Password = mypassword; option = 3;
   
Ole db, oledbconnection (. NET)
 
Standard
Provider = mysqlprov; Data Source = mydb; user id = myusername; Password = mypassword;
   
Connector/NET 1.0 (. NET)
 
Standard
Server = myserveraddress; database = mydatabase; uid = myusername; Pwd = mypassword;
The default port is 3306.
 
Port Number
Server = myserveraddress; Port = 1234; database = mydatabase; uid = myusername; Pwd = mypassword;
   
Named Pipe
Server = myserveraddress; Port =-1; database = mydatabase; uid = myusername; Pwd = mypassword;
If the port is-1, it indicates that the driver uses the named pipe network protocol to connect to the database.
 
Mysqlconnection (. NET)
 
Einfodesigns. dbprovider
Data Source = myserveraddress; database = mydatabase; user id = myusername; Password = mypassword; command logging = false;
   
Sevenobjects mysqlclient (. NET)
 
Standard
Host = myserveraddress; username = myusername; Password = mypassword; database = mydatabase;
   
Core labs mysqldirect (. NET)
 
Standard
User ID = root; Password = mypassword; host = localhost; Port = 3306; database = mydatabase; direct = true; Protocol = TCP; comdivss = false; pooling = true; min pool size = 0; Max pool size = 100; connection lifetime = 0;
   
Mysqldrivercs (. NET)
 
Standard
Location = myserveraddress; Data Source = mydatabase; userid = myusername; Password = mypassword; Port = 3306; extended properties = """";

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.