[tim@alfred ~]$ mysql -u root ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) [tim@alfred ~]$ su Password: [root@alfred tim]# mysql -u root ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) [root@alfred tim]#
seems there is a MySQL root pwd set - in that case use mysql -u root -pyourpasswordhereor leave off the yourpasswordhere and it will prompt you for it when you hit enter