1. Create a database CW (tablespace, Schema) CREATE database CW; 2. Create a user 2.1. Create a local user cw1 CREATE USER cw1@'localhost' IDENTIFIED BY 'pwd1'; 2.2. Create network remote access user cw2 CREATE USER cw2@'%' IDENTIFIED BY 'pwd2'; 3. Change the password set pwssword for 'cw1'@'localhost' = password('new1'); 4. Authorization 4.1.cw1 is authorized as administrator DBA GRANT ALL PRIVILEGES ON CW.* TO cw1; 4.2.cw2 Read permission for the entire database GRANT SELECT ON CW.* TO 'cw2'@'%' IDENTIFIED BY 'pwd2';
Create database, user and authorize
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326242902&siteId=291194637
Recommended
Ranking