Error:import error:libmysqlclient.so.18 :cannot open shared object file:No such file or directory
solutions: First:find where is libmysqlclient.so.18
second: ln -s full path /usr/lib/libmysqlclient.so.18
Get the result: conn=MySQLdb(user='',passwd='',db='',host='')
cursor=conn.cursor()
cursor.execute(sql)
a=cursor.fetchall[,many(num),all]()
解决libmysqlclient.so.18错误
本文解决了一个特定的Python MySQL连接错误:找不到libmysqlclient.so.18共享对象文件。通过查找该文件并创建符号链接到正确路径的方法,成功实现了数据库连接。
901

被折叠的 条评论
为什么被折叠?



