How to connect to MySQL using Python
import mysql.connector
config = { 'user': 'root', 'password': 'root', 'host': 'localhost', 'port': 8889, 'database': 'inventory', 'raise_on_warnings': True,}
link = mysql.connector.connect(**config)← MySQL
import mysql.connector
config = { 'user': 'root', 'password': 'root', 'host': 'localhost', 'port': 8889, 'database': 'inventory', 'raise_on_warnings': True,}
link = mysql.connector.connect(**config)← MySQL