1.设置环境变量
PATH="$PATH":/usr/local/mysql/bin
sudo mysqld_safe --skip-grant-tables --skip-networking &
3.修改密码
update mysql.user set authentication_string=PASSWORD('123456') where user='root' and host='localhost';
flush privileges;
1.设置环境变量
PATH="$PATH":/usr/local/mysql/bin
sudo mysqld_safe --skip-grant-tables --skip-networking &
3.修改密码
update mysql.user set authentication_string=PASSWORD('123456') where user='root' and host='localhost';
flush privileges;