1.mysql -uroot -p
2.输入密码:
3.update mysql.user set authentication_string=password(‘123456‘) where user=‘oneuser‘ and Host = ‘%‘;
4.grant all privileges on onetable.* to [email protected]‘%‘ identified by ‘123456‘;
5.flush privileges;
然后外部连接数据库。
时间: 2024-10-15 08:25:53