Home

A quick summary of Home

Page About Nothing

Welcome to my Wiki!

6835 Baff 9 D 37 4718 A 4 De 2 Be 6 Ac 1 D 4943

GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'password';

import mysql.connector

weblist = ["ericafox", "ericascott", "ericastevens", "samarafox", "samarastevens", "williamscott", "woodytheduck"]


mydb = mysql.connector.connect(
  host="localhost",
  user="william",
  passwd="password"
)

mycursor = mydb.cursor()


for db in weblist:
    mycursor.execute("GRANT ALL PRIVILEGES ON " + db + ".* TO 'admin'@'localhost'")