About the problem that MySQL5.6 and later versions cannot be started after installation
Mysql 5.6 and later are released for security reasons, and the root password is not empty. So during the installation of MySQL, a random password is generated
Execute # / etc/init.d/mysql stop
Then # mysqld_safe-- user=mysql-- skip-grant-tables-- skip-networking &
Then execute # mysql-u root mysql
After entering MySQL
Execute > UPDATE user SET Password=PASSWORD where USER='root'
Exit exits mysql
Re-log in # mysql-uroot-p and type passwd
Log in successfully