Forums

1044, "Access denied for user

Hi, I'm getting a 1044, "Access denied for user 'ElAwbery'@'%' to database 'ElAwbery$Django'" I think my settings are correct:

DATABASES = {
'default': {
    'ENGINE': 'django.db.backends.mysql',
    'NAME': 'ElAwbery$Django',
    'USER': 'ElAwbery',
    'PASSWORD': 'mysqlpasswordhere',
    'HOST': 'ElAwbery.mysql.pythonanywhere-services.com',
}

}

I used this page to help set up my database connection: https://help.pythonanywhere.com/pages/UsingMySQL/

I haven't created any new databases, I am trying to connect to one that I created outside of PythonAnywhere. Any suggestions for how to troubleshoot much appreciated!

If you're getting "Access denied", it's because you're using the wrong password. It's not your PythonAnywhere login password. It's the password that you set for your database when you configured it. All the other settings look correct for your account.

Same for me... I change my password there to be sure it's the good one but it change nothing...

MySQL password: This should be different to your main PythonAnywhere password, because it is likely to appear in plain text in any web applications you write.

New password: Confirm password:

If you're getting access denied connecting to your database, one of the following is wrong - the username you're using, the database name you're using or the password. The first 2 are shown on your Databases page and the last is the one you set on the Databases page.

Hi, I'm getting a 1044 error: (1044, "Access denied for user 'meeraanna'@'%' to database 'tododatabase'") I think my settings are correct:

DATABASES = { "default": { "ENGINE": "django.db.backends.mysql", "NAME": "tododatabase", "USER": "meeraanna", "PASSWORD": "meera@123", "HOST": "meeraanna.mysql.pythonanywhere-services.com", } }

Your databse name is probably "meeraanna$tododatabase" not "tododatabase"

django.db.utils.OperationalError: (1045, "Access denied for user 'bankapplogin'@'10.0.0.107' (using password: YES)") iam getting this error and database settings is

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.mysql",
        "NAME":"bankapplogin$bankdatabase",
        "USERNAME":"bankapplogin",
        "PASSWORD":"bankdatabase",
        "HOST":"bankapplogin.mysql.pythonanywhere-services.com",
    }
}

[edit by admin: formatting]

Have you checked that the password you are specifying there matches the one in the file .my.cnf in your home directory?

BTW I noticed that your username is bankapplogin -- if you are creating some kind of site that resembles a banking website, then please make it very clear on the site that it is not a real bank. There are scammers out there who use fake bank sites as part of their activities, and we regularly have to shut them down.

i have installed the python pyttsx3 library for the text to speech recognition but it didn't work.

What kind of errors did you get, @keku4?