<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=7336462756272110356&amp;blogName=Adminlinux.org++++(......)&amp;publishMode=PUBLISH_MODE_HOSTED&amp;navbarType=BLUE&amp;layoutType=CLASSIC&amp;searchRoot=http://www.adminlinux.org/search&amp;blogLocale=en_GB&amp;homepageUrl=http://www.adminlinux.org/&amp;vt=6729395747110618495" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" allowtransparency="true" title="Blogger Navigation and Search"></iframe> <div></div>

Dreaming Linux, Use free software Save the World....

Monday, 23 June 2008

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) on Ubuntu

Add a user and password to Mysql on Ubuntu Gutsy 7.10

The first time you install Mysql, when you try tu run it you may get this error:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO),

You need to add a password to your root user:

mysql -u root -p

Then it will ask you to enter a pass word for the root user:

mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD(’new-password’) WHERE user=’root’;
mysql> FLUSH PRIVILEGES;

Do not use your root user password this time enter a new password.



Need Help? Join Our Chat Room

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home