mysql -uroot -p4. 输入命令grant all privileges on . to ‘root’@‘%’ identified by ‘password’;回车,其中password是你msyql数据库的密码
grant all privileges on *.* to 'root'@'%' identified by 'password';5. 输入flush privileges;回车
flush privileges;6. 关闭窗口,在另一台电脑上使用DBeaver连接成功



