Additions:
==You can add users right using GRANT==
Add User (usage only, all privs, full rights)
mysql> GRANT USAGE ON * . * TO 'myuser'@'myhost' ;
mysql> GRANT ALL PRIVILEGES ON * . * TO 'myuser'@'myhost' IDENTIFIED BY 'newpass' ;
mysql> GRANT ALL PRIVILEGES ON * . * TO 'myuser'@'myhost' IDENTIFIED BY 'newpass' WITH GRANT OPTION ;
==You can remove users rights using REVOKE==
Remove User (usage only, all privs, full rights)
mysql> revoke all on * . * from 'myuser'@'myhost' ;
----
REFERRERS
{{backlinks}}
Add User (usage only, all privs, full rights)
mysql> GRANT USAGE ON * . * TO 'myuser'@'myhost' ;
mysql> GRANT ALL PRIVILEGES ON * . * TO 'myuser'@'myhost' IDENTIFIED BY 'newpass' ;
mysql> GRANT ALL PRIVILEGES ON * . * TO 'myuser'@'myhost' IDENTIFIED BY 'newpass' WITH GRANT OPTION ;
==You can remove users rights using REVOKE==
Remove User (usage only, all privs, full rights)
mysql> revoke all on * . * from 'myuser'@'myhost' ;
----
REFERRERS
{{backlinks}}
Deletions:
==Add User (usage only, all privs, full rights)==
mysql> GRANT USAGE ON *.* TO 'myuser'@'myhost' ;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'myhost' IDENTIFIED BY 'newpass' ;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'myhost' IDENTIFIED BY 'newpass' WITH GRANT OPTION ;
Additions:
==Add User (usage only, all privs, full rights)==
mysql> GRANT USAGE ON *.* TO 'myuser'@'myhost' ;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'myhost' IDENTIFIED BY 'newpass' ;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'myhost' IDENTIFIED BY 'newpass' WITH GRANT OPTION ;
mysql> GRANT USAGE ON *.* TO 'myuser'@'myhost' ;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'myhost' IDENTIFIED BY 'newpass' ;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'myhost' IDENTIFIED BY 'newpass' WITH GRANT OPTION ;
Deletions:
==Add User==
mysql> GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'myhost' IDENTIFIED BY 'newpass' WITH GRANT OPTION;
Additions:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'myhost' IDENTIFIED BY 'newpass' WITH GRANT OPTION;
mysql> UPDATE user SET password = PASSWORD('newpass') WHERE user = 'user' ;
mysql> UPDATE user SET password = PASSWORD('newpass') WHERE user = 'user' ;
Deletions:
mysql> update user set password = PASSWORD('newpass') where user = 'user' ;