linux 安装mysql

1 重启MySQL

/etc/init.d/mysql restart(有些用户可能需要使用/etc/init.d/mysqld restart)

2 修改数据库密码

update mysql.user  set authentication_string=password('123456') where user='root';
原文地址:https://www.cnblogs.com/xzjf/p/14964239.html