文件名称:DELPHI连接MYSQL.zip
文件大小:2.42MB
文件格式:ZIP
更新时间:2022-09-10 15:21:12
mysql delphi dbxopenmysql50
DELPHI连接MYSQL,通过MYSQL DLL连接,无需ODBC等方式,直接调用DLL连接mysql,调用简单,在创建事件添加以下代码即可. SQLConnection1 := TSQLConnection.Create(nil); SQLConnection1.DriverName := 'dbxmysql'; SQLConnection1.GetDriverFunc := 'getSQLDriverMYSQL50'; SQLConnection1.LibraryName := 'dbxopenmysql50.dll'; SQLConnection1.VendorLib := 'libmysql.dll'; SQLConnection1.LoginPrompt := false; SQLConnection1.Params.Append('Database=TdTestDb'); SQLConnection1.Params.Append('User_Name=xzx'); SQLConnection1.Params.Append('Password=xzx'); SQLConnection1.Params.Append('HostName=192.168.0.188'); SQLConnection1.Open;
【文件预览】:
DELPHI连接MYSQL
----libmysql 64()
--------libmysql.dll(4.65MB)
----libmysql 32()
--------libmysql.dll(4.42MB)
----连接方式.txt(420B)
----Read me.txt(130B)
----dbxopenmysql50.dll(156KB)