mysql db code example
Example 1: mean mysql
avg(column)
Example 2: what is mysql?
MySQL is an open source DBMS which is built, supported and distributed by MySQL(ORACLE).
Example 3: python and mysql connectivity
import pymysql
db = pymysql.connect("database_host","username","password","database_name")
cursor = db.cursor()
cursor.execute("SELECT VERSION()")
data = cursor.fetchone()
print ("Database version : {0}".format(data))
db.close()
Example 4: MYSQL
GRANT CREATE ON *.* TO 'testuser'@'localhost';