The MySQL root password allows the root user to have full access to the MySQL database. You must have (Linux) root or (Windows) administrator access to the Cloud Server to reset the MySQL root password. (A.) Reset a MySQL root password c ommand line :- Step (1.) Stop the MySQL service (Ubuntu and Debian) Run the following command: sudo /etc/init.d/mysql stop OR sudo /etc/init.d/mysqld stop Step (2.) Start MySQL without a password Run the following command. The ampersand (&) at the end of the command is required sudo mysqld_safe --skip-grant-tables & Step (3.) Connect to MySQL Run the following command: mysql -uroot Step (4.) Set a new MySQL root password Run the following command: use mysql; update user set password = PASSWORD ("newpassword") where User='root'; flush privileges; quit Error : - ERROR 1045 (28000): Access denied for user 'root'@'localhost' I also tried to start with mysql_safe (error.lo...
it's always a good idea to keep track of your learning.