Professional Documents
Culture Documents
SQL Updates Password
SQL Updates Password
localhost' IDENTIFIED BY 'gk123'; SHOW GRANTS FOR 'admin'@'localhost'; DROP USER 'gk'@'localhost'; ! ok CREATE USER 'gk'@'localhost' IDENTIFIED BY 'gk123'; mysql> GRANT ALL PRIVILEGES ON *.* TO 'gk'@'localhost' mysql> DROP USER 'gk'@'localhost'; Query OK, 0 rows affected (0.06 sec) mysql> DROP USER 'gk'@'%.localhost'; Query OK, 0 rows affected (0.00 sec)