delphi10.3安装使用mySQL(02)从SQLite 转移至Mysql
作者:互联网
1]假设Mysql已安装好,服务已启用
2]
3]
[FireDAC][Phys][MySQL] Unknown MySQL server host '<LOCAL>' (11004).
---------------------------
127.0.0.1
---------------------------
4】
---------------------------
[FireDAC][Phys][MySQL]-314. Cannot load vendor library [libmysql.dll,
libmariadb or libmysqld.dll]. 找不到指定的模块。
Hint: check it is in the PATH or application EXE directories, and has x86
bitness..
---------------------------
在使用c++builder FIREDAC连接mysql时,出现[FireDac][Phys][MySQL]-314.
Cannot load vendor library [libmysql.dll orlibmysqlld.dll]这个问题
原因
使用的系统是win7 64位,Mysql是64位,而c++builder是32位的。
解决办法
在网上下载一个32位的libmysql.dll,放在C:\Windows\SysWOW64就可以了
https://blog.csdn.net/winniezhang/article/details/103726647
5】insert 的子查询
SQLite里的写法
INSERT INTO ToDoListTable VALUES( (select max(id)+1 from ToDoListTable),'''+uniEdit1.Text+''',0)
Mysql里的写法
INSERT INTO ToDoListTable(id ,aName,isDone) select max(id)+1,'''+uniEdit1.Text+''',0 from ToDoListTable
标签:02,SQLite,Phys,Mysql,dll,ToDoListTable,libmysql,MySQL 来源: https://www.cnblogs.com/tulater/p/15415289.html