mysql之用戶受權

受權命令:mysql

1.所有權限:grant all on *.* to user@192.168.10.2 identified by "pass";sql

2.部分權限:grant select,insert into on *.* to user@192.168.10.2 identified by "pass"數據庫

查看用戶受權表: ide

  select user,host,password from mysql.user;ip

mysql下默認存在mysql數據庫,裏邊的user表存儲着用戶和受權信息。get

=======================================虛擬機

遇到的問題:本地的navicat連接不上我虛擬機的mysqlit

解決:須要虛擬機的mysql受權給本地的ip:grant all on *.* to user@192.168.64.21 identified by "pass";class

相關文章
相關標籤/搜索