MySQL Forums
Forum List  »  Newbie

Always get "Access denied for user 'root'@'localhost'" after installing
Posted by: Marco Baar
Date: October 13, 2012 02:29AM

Hey there,

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)

# or
mysql -uroot -hlocalhost
mysqladmin --no-defaults -u root version

# all the same error

Hope you can help me.

So long Marco

Options: ReplyQuote

Written By
Always get "Access denied for user 'root'@'localhost'" after installing
October 13, 2012 02:29AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.