If you’re thinking without writing, you only think you’re thinking.
(Leslie B. Lamport)

[linux] MySQL

Reset a MySQL root password

Stop the MySQL service service mysql stop Connect to MySQL mysql -uroot Set a new MySQL root password use mysql; update user set password=PASSWORD(“mynewpassword”) where User=‘root’; flush privileges; quit Start the MySQL service service m…

Remove MySQL Completely from Linux System

yum remove mysql mysql-server mv /var/lib/mysql /var/lib/mysql_old_backup yum install mysql mysql-server