####初始化数据库
scripts/mysql_install_db --basedir=/usr/local/mysql --datadir=/usr/local/mysql/mysqldata --user=mysql
####开启root远程登录
grant all privileges on *.* to root@'%' identified by "root";
####初始化数据库
scripts/mysql_install_db --basedir=/usr/local/mysql --datadir=/usr/local/mysql/mysqldata --user=mysql
####开启root远程登录
grant all privileges on *.* to root@'%' identified by "root";
评论区