If you use the MySQL database and use the dbgo (ADO) component to connect through MySQL ODBC 3.5.1 or MySQL connector/ODBC 5.0, then your tadoconnection connection string (connectionstring)
1. when accessing the local database:
'Driver = {MySQL ODBC 3.51 driver}; server = localhost; database = mydatabase; user = myusername; Password = mypassword; option = 3 ;'
2. When connecting to a remote database:
'Driver = {MySQL ODBC 3.51 driver}; server = data.domain.com; Port = 3306; database = mydatabase; user = myusername; Password = mypassword; option = 3 ;'
3. When using ODBC 5.0 to connect to a local database:
'Driver = {MySQL connector/ODBC V5}; server = localhost; database = mydatabase; uid = myusername; Password = mypassword; option = 3 ;'
4. When using ODBC 5.0 remote database:
'Driver = {MySQL connector/ODBC V5}; server = data.domain.com; Port = 3306; database = mydatabase; uid = myusername; Password = mypassword; option = 3 ;'
5. When using ODBC 5.1 to connect to a local database:
'Driver = {MySQL ODBC 5.1 Driver}; server = localhost; database = mydatabase; uid = myusername; Password = mypassword; option = 3 ;'
6. When using ODBC 5.1 remote database:
'Driver = {MySQL ODBC 5.1 Driver}; server = data.domain.com; Port = 3306; database = mydatabase; uid = myusername; Password = mypassword; option = 3 ;'
Note: "data.domain.com" is the database server domain name, "mydatabase" is the database name, "myusername" is the username, and "mypassword" is the password. Please replace it according to your actual situation.