Django admin server
Description
We are creating the super user in django app. This will give us an elevated access in django app
Django Admin
(dj-env) [dj_adm@localhost mysite]$ python manage.py createsuperuser
Username (leave blank to use 'dj_adm'): admin
Email address: vel-----@gmail.com
Password:
Password (again):
Superuser created successfully.
(1045, "Access denied for user 'dj_adm'@'localhost' (using password: NO)")
We added the password directly to the settings.py and removed the dependency of my.cnf solved the problem
possible other solutions
ALTER USER 'dj_adm'@'localhost' IDENTIFIED WITH mysql_native_password BY '********';
FLUSH PRIVILEGES;
FLUSH PRIVILEGES;
Comments
Post a Comment