I have a local MySql server. It is started as I can access it with my local user like$ mysqlWelcome to the MySQL monitor.  Commands end with ; or \g.Your MySQL connection id is 66Server version: 5.5.34-0ubuntu0.13.04.1 (Ubuntu)Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> exitjust fine but when i try with root, I keep getting this:$ mysql -u rootERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)What does this mean and how can I fix this?editAlso this doesn't work (after running sudo mysql_install_db):$ /usr/bin/mysqladmin -u root password 'MyPass'/usr/bin/mysqladmin: connect to server at 'localhost' failederror: 'Access denied for user 'root'@'localhost' (using password: NO)'
MySql not accessible by root user
shell;permissions;root;mysql
Try usingmysql -u root -pfor a password prompt.If that does not work then perhaps refer to https://stackoverflow.com/questions/11760177/access-denied-for-root-user-in-mysql-command-line