Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
If that you must create a desk in a MySQL database utilizing Python, then you are able to do the next.
import mysql.connector
mydb = mysql.connector.join(
host = "localhost",
consumer = "username",
password = "YoUrPaSsWoRd",
database = "your_database"
)
mycursor = mydb.cursor()
mycursor.execute("CREATE TABLE individuals (identify VARCHAR(255), deal with VARCHAR(255))")
import mysql.connector
mydb = mysql.connector.join(
host = "localhost",
consumer = "yourusername",
password = "YoUrPaSsWoRd",
database = "your_database"
)
mycursor = mydb.cursor()
mycursor.execute("SHOW TABLES")
for x in mycursor:
print(x)