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="***xx" and host="localhost";
mysql>flush privileges;
mysql使用者新增 MySQL使用者新增
我的是ubuntu 12.04。發現在mysql中經常出現新增使用者之後,要麼只能本地登陸,要麼只能遠端登陸的蛋疼的情況。這裡記錄一下是如何操作的。建立使用者 create user username identified by password 如果想要讓這個使用者即可以本地登陸,也可以遠端登 我...
mysql使用者新增 mysql新增使用者
mysql新增使用者 mysql新增使用者方法 建立資料庫gamesp create database gamesp 新增使用者 grant all on 資料庫名.to 使用者 名 localhost identified by 密碼 grant all on gamesp.to newuser ...
mysql新增 mysql新增使用者
增加新使用者 格式 grant select on 資料庫.to 使用者名稱 登入主機 identified by 密碼 例1 增加乙個使用者test1密碼為abc,讓他可以在任何主機上登入,並對所有資料庫有查詢 插入 修改 刪除的許可權。首先用以root使用者連入mysql,然後鍵入以下命令 gr...