3、添加配置文件
运行下面命令增加一个配置文件
sudo cp /usr/local/mysql/support-files/my-large.cnf /etc/my.cnf
4、修改Mysql密码
用以下命令修改mysql密码设置为root123$ /usr/local/mysql/bin/mysql -u root
mysql> use mysql
mysql> UPDATE user SET password=PASSWORD("root123") WHERE user='root';
mysql> FLUSH PRIVILEGES;
mysql> QUIT