[ad_1]
Hey everyone,
I’m looking for some guidance on how to extract data from a WordPress MySQL database that’s hosted on a shared server. I’d like to use Python for this task
import mysql.connector
db = mysql.connector.connect(
host=”,
port=,
user=”,
password=”,
database=”
)
if db.is\_connected():
print(‘Connected to the MySQL database successfully!’)
else:
print(‘Failed to connect to the MySQL database!’)
its not connecting to database