connect python to mysql
import mysql.connector
mydb = mysql.connector.connect(
host="localhost",
user="yourusername",
password="yourpassword",
port = 8888, #for Mamp users
database='whatever db you want'
)
print(mydb)
connect python to mysql
import mysql.connector
mydb = mysql.connector.connect(
host="localhost",
user="yourusername",
password="yourpassword",
port = 8888, #for Mamp users
database='whatever db you want'
)
print(mydb)
python mysql
C:UsersYour NameAppDataLocalProgramsPythonPython36-32Scripts>python -m pip install
mysql-connector-python
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us