Pass the socket path in the connection string: cnxn = pyodbc.connect('DRIVER={MySQL};DATABASE=test;SOCKET=/var/lib/mysql/mysql.sock') ...
確定! 回上一頁