建立新使用者

2021-09-13 01:54:54 字數 530 閱讀 5405

新增新使用者

允許本地 ip 訪問 localhost, 127.0.0.1

create user 『test』@『localhost』 identified by 『123456』;

允許外網 ip 訪問

create user 『test』@』%』 identified by 『123456』;

為新使用者分配許可權

授予使用者通過外網ip對於該資料庫的全部許可權

grant all privileges ontestdb.* to 『test』@』%』 identified by 『123456』;

授予使用者在本地伺服器對該資料庫的全部許可權

grant all privileges ontestdb.* to 『root』@『localhost』 identified by 『p6e70e97efa』;

在命令框 遠端連線的時候,帶上阿里雲的伺服器

mysql -h47.98.240.236 -uroot -p6e70e97efa

oracle 建立新使用者

create the user create user personnel manage identified by mwq default tablespace users temporary tablespace temp profile default quota 1024m on sysau...

Mysql建立新使用者

1.建立使用者 語法 create user username host identified by password 例子 create user dog localhost identified by 123456 create user pig 192.168.1.101 idendified...

Mysql建立新使用者

1.create user 語法 create user username host identified by password 例子 create user dog localhost identified by 123456 create user pig 192.168.1.101 iden...