注意:mysql環境中的命令後面都帶乙個分號作為命令結束符
1、root連線資料庫: ssh root@192.168.1.1
2、mysql -u root -p 然後輸入密碼
3、建立資料庫:create database test
4、檢視所有資料庫:show databases
5、增加使用者:create user 'test_user'@'%' identified by '123456$'
6、許可權:grant all privileges on test.* totest_user@'%' identified by '123456$';
7、重新整理許可權設定:flush privileges;
mysql資料庫和使用者建立
1.建立資料庫 create database test 2.建立使用者 任何終端都可以連線 grant select,insert,update,delete on test.to user identified by 123456 只讓某個位址段連線 grant select,insert,up...
mysql 建立資料庫和使用者
1 用管理員賬號登陸mysql 2 建立資料庫 create database db01 3 建立使用者 create user user01 localhost identified by password1 user01只能本地訪問 create user user02 identified b...
建立資料庫使用者
建立表空間 create tablespace 表空間名 datafile d 表空間名.dbf size 20m autoextend on next 10m 建立臨時表空間 create temporary tablespace 臨時表空間名 tempfile d myself.ldf size...