mysql修改密码:update mysql.user set authentication_string=password('密码') where user='root';
update
mysql.
user
set
authentication_string=
password
(
'密码'
)
where
=
'root';
更新权限:flush privileges;
更新权限:
flush
privileges
;
mysql允许远程链接:GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION;