简体   繁体   中英

How to connect to a MySQL server with Delphi

我知道如何使用ODBC连接到同一台计算机上的MySQL数据库,但是现在我想知道如何连接到网络上另一台服务器上的MySQL数据库。

Write the database computer's name or IP-address after Server= in the connection string. For example:

Driver={MySQL ODBC 5.1 Driver};Server=myServerAddress;Database=myDataBase;User=myUsername; Password=myPassword;Option=3;

more examples here http://www.connectionstrings.com/mysql#p31

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM