mysql以root远程登录
当某些特殊情形下,我们需要使用root用户来远程登录,管理mysql数据库;则需要我们为root用户授权;
操作方法
- 01
默认情况下,root用户是不具备远程登录的权限的,这也是基于安全考虑;
- 02
在mysql server中查看root用户所具备的相应权限;
- 03
给root用户进行授权: Grant all privileges on *.* to 'root'@'%' identified by 'kdm001' with grant option; 注:kdm001为root远程登录时使用的密码;
- 04
在本机中,新开command窗口,确认root用户可以进行登录;
赞 (0)