ssh-tunnel

SSHTunnel and MySQL.connector in Python failing

孤人 提交于 2020-08-11 01:51:01
问题 I'm trying to use the MySQL connector in Python, through an SSHTunnel, and I'm getting a MySQL Connection not available. error. It seems to be talking to the server (I get an access denied message if I change the password), but it fails when I try to create a cursor object (specifically, when the MySQL library runs CMySQLConnection.is_connected() . I can connect to the database by SSHing in using the same credentials, then running mysql in the command line. Code: with sshtunnel

SSHTunnel and MySQL.connector in Python failing

ぃ、小莉子 提交于 2020-08-11 01:49:10
问题 I'm trying to use the MySQL connector in Python, through an SSHTunnel, and I'm getting a MySQL Connection not available. error. It seems to be talking to the server (I get an access denied message if I change the password), but it fails when I try to create a cursor object (specifically, when the MySQL library runs CMySQLConnection.is_connected() . I can connect to the database by SSHing in using the same credentials, then running mysql in the command line. Code: with sshtunnel