mysql添加用戶、更改密碼_MySQL
來源:懂視網
責編:小采
時間:2020-11-09 18:06:31
mysql添加用戶、更改密碼_MySQL
mysql添加用戶、更改密碼_MySQL:bitsCN.com mysql添加用戶方法 建立數據庫gamespcreate database gamesp;添加用戶grant all on 數據庫名.* to 用戶名@localhost identified by 密碼; grant all on gamesp.* to newuser@localhost identifie
導讀mysql添加用戶、更改密碼_MySQL:bitsCN.com mysql添加用戶方法 建立數據庫gamespcreate database gamesp;添加用戶grant all on 數據庫名.* to 用戶名@localhost identified by 密碼; grant all on gamesp.* to newuser@localhost identifie

bitsCN.com
mysql添加用戶方法
建立數據庫gamesp
create database gamesp;
添加用戶
grant all on 數據庫名.* to 用戶名@localhost identified by 密碼;
grant all on gamesp.* to newuser@localhost identified by password;
說明:
(1)grant all 賦予所有的權限
(2)gamesp.* 數據庫 gamesp 中所有的表
(3)newuser 用戶名
(4)@localhost 在本地電腦上的 mysql server 服務器
(5)identfified by password 設置密碼
刪除用戶
use mysql
mysql>Delete FROM user Where User="xxxxx" and Host="localhost";
mysql>flush privileges;
修改密碼
mysqladmin -uroot -plk317921web password "111111"
bitsCN.com
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
mysql添加用戶、更改密碼_MySQL
mysql添加用戶、更改密碼_MySQL:bitsCN.com mysql添加用戶方法 建立數據庫gamespcreate database gamesp;添加用戶grant all on 數據庫名.* to 用戶名@localhost identified by 密碼; grant all on gamesp.* to newuser@localhost identifie