Forums

Access denied for user

Access denied for user 'homahomak'@'%' to database '/home/homahomak/mysite1/homahomak$test'")

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': '/home/homahomak/mysite1/homahomak$test',                      # Or path to database file if using sqlite3.
        'USER': 'homahomak',                      # Not used with sqlite3.
        'PASSWORD': 'mypassword',                  # Not used with sqlite3.
        'HOST': 'mysql.server',                      # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '3306',                      # Set to empty string for default. Not used with sqlite3.
    }
}

Please help me ...

[edited by admin for code legibility]

You should use just homahomak$test for the name, not /home/homahomak/mysite1/homahomak$test -- it's a name of a database on a MySQL server, not a file.