Question
I can't create a database with mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Using Debian:
I have uninstalled and reinstalled mysql using apt-get remove --purge mysql\*, then reinstalled. Running mysql_secure_installation does not work because it will not accept my password. I hoped clearing all things mysql related would reset the password used for this. How can I have a clean start with mysql? How can I prevent this from happening in the future?
Thank you
Add a comment
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×