import mysql.connector mydb = mysql.connector.connect( host="localhost", user="EMG", password="JAMESPaige@63" ) print("Connected to MySQL database:", mydb.database)been trying to run this script to connect to a MySQL Database I am trying to set up with python, it has flagged an issue with no attribute with 'connect' on line 3 which I cant get as I've all the right libraries installed. Coming at this like a beginner as I haven't used Python in 5 years
Larz60+ write May-29-2024, 07:22 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Tags added for you this time. Please use BBCode tags on future posts,
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Tags added for you this time. Please use BBCode tags on future posts,