mysql 初始化@centos7

mysql 初始化@centos7

rm -rf /var/lib/mysql
mysqld –initialize-insecure –user=mysql
systemctl start mysqld
mysql -u root –skip-password

Share