Answers for "python mysql show databases"

SQL
0

python mysql show databases

import mysql.connector
conn = mysql.connector.connect (user='user', password='password',
                               host='server_address',buffered=True)
cursor = conn.cursor()
databases = ("show databases")
cursor.execute(databases)
for (databases) in cursor:
     print databases[0]
Posted by: Guest on March-17-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language