1.进入mysql:mysql -u root -p
2.允许远程访问:
mysql -u root –p
mysql>use mysql;
mysql>
update
user
set
host =
‘%‘
where
user
=
‘root‘
;
mysql>
flush privileges;
时间: 2024-10-22 02:00:31
1.进入mysql:mysql -u root -p
2.允许远程访问:
mysql -u root –p
mysql>use mysql;
mysql>
update
user
set
host =
‘%‘
where
user
=
‘root‘
;
mysql>
flush privileges;