mysql新建資料庫 新建使用者 分配許可權

2021-10-11 01:47:43 字數 427 閱讀 1381

注意這樣分配的許可權是所有許可權:

root 登入mysql

create database 資料庫名 default character set utf8 collate utf8_bin;

grant all on 資料庫名.* to 『使用者名稱』@』%』 identified by 『密碼』;

grant all on 資料庫名.* to 『使用者名稱』@『localhost』 identified by 『密碼』;

給使用者設定指定庫、表 指定許可權

grant create,alter,drop,select,insert,update,delete on 資料庫名.* to 『使用者名稱』@』%』 identified by 『密碼』;

flush privileges;

Oracle資料庫新建使用者

oracle資料庫 準備工作select from dba data files 檢視表空間路徑新建使用者 1 建立表空間 1.1建立表空間a.create tablespace x 表空間名稱 datafile x.dbf 準備工作中查詢的表空間路徑 size 200m autoextend on...

oracle 9i 新建資料庫,新建使用者

新建資料庫 可以使用嚮導 database configuration assistant,不知道要建立什麼樣的資料庫就選擇general purpose,其它選項預設就可以了,最後會要求設定sys,system的密碼,密碼請記好。新建使用者,使用system使用者登入sqlplus workshe...

Mysql新建使用者和資料庫並授權

測試環境 centos 6.3和mysql 5.3 一 新建使用者 登入mysql mysql u root p 密碼 建立使用者 mysql insert into mysql.user host,user,password values localhost cplusplus password ...