Answers for "import mysql database with python"

SQL
4

how to connect to mysql database in python

import mysql.connector

cnx = mysql.connector.connect(user='scott', password='password',
                              host='127.0.0.1',
                              database='employees')
cnx.close()
Posted by: Guest on March-23-2020
0

import mysql db

zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database
Posted by: Guest on October-19-2020

Code answers related to "import mysql database with python"

Code answers related to "SQL"

Browse Popular Code Answers by Language