Answer the question
In order to leave comments, you need to log in
How to fix error 1045 when connecting to MySQL via Python?
Created a MySQL database, trying to join it via below code
import _mysql
def main():
db=_mysql.connect()
db = _mysql.connect(host="localhost", user="admin",passwrd="пароль от бд, который я вводил при установке" db="clients")
print(db)
if __name__ == '__main__':
main()
_mysql_exceptions.OperationalError: (1045, "Access denied for user 'ODBC'@'localhost' (using password: NO)")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question