Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQLdb security when connecting to a remote server?

    db = MySQLdb.connect(host ="host",
        user="user",
        passwd="pass",
        db="dbname")
    q = db.cursor()

So, that's my code block, I was just wondering, how easy would this be to reverse engineer, and does mysqldb send authentications over cleartext?

I am creating a program that connects to a mySQL server over the internet, would someone be able to get my credentials?

Would someone be able to get my server login details?

like image 770
AB49K Avatar asked Nov 03 '22 04:11

AB49K


1 Answers

The MySQL server could be configured to use SSL to secure the connection. See here for an example of using MySQLdb with an SSL connection and here for some info on configuring the server.

like image 76
Ned Deily Avatar answered Nov 09 '22 13:11

Ned Deily