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]()