<gh_stars>1-10
import mysql.connector

dbconfig = {
    "host": "127.0.0.1",
    "user": "vsearch",
    "password": "<PASSWORD>",
    "database": "vsearchlogDB",
}

conn = mysql.connector.connect(**dbconfig)
cursor = conn.cursor()

_SQL = """show tables"""
cursor.execute(_SQL)
res = cursor.fetchall()
print(res)

cursor.close()
conn.close()

import mysql.connector

dbconfig = {
    "host": "127.0.0.1",
    "user": "vsearch",
    "password": "<PASSWORD>",
    "database": "vsearchlogDB",
}

conn = mysql.connector.connect(**dbconfig)
cursor = conn.cursor()

_SQL = """show tables"""
cursor.execute(_SQL)
res = cursor.fetchall()
print(res)

cursor.close()
conn.close()
show tables