October 13th, 2012, 06:05 AM
Join Date: Oct 2012
Time spent in forums: 31 m 16 sec
Reputation Power: 0
Always get "Access denied for user 'root'@'localhost'" after installing
got an Ubuntu 10.04 v-server to install. First I have to reinstall mysql to reset all mysql-stuff on this mashine.
# remove installation first
sudo apt-get --purge remove mysql-server mysql-common mysql-client libmysqlclient15-dev libmysql-ruby
# reinstall mysql for a fresh instance
sudo apt-get install mysql-server
# all 3 password request, I answer them with <enter> to have a default password of ""
# now trying to get the mysql console with root
# ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
mysql -uroot -hlocalhost
mysqladmin --no-defaults -u root version
# all the same error
Hope you can help me.
So long Marco