日期:2014-05-16 浏览次数:20651 次
CREATE USER 'jeffrey'@'localhost' IDENTIFIED BY 'my pass';
DROP USER 'jeffrey'@'localhost';
GRANT ALL PRIVILEGES ON *.* TO 'jeffrey'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION
REVOKE INSERT ON *.* FROM 'jeffrey'@'localhost'; REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'jeffrey'@'localhost';
RENAME USER 'jeffrey'@'localhost' TO 'jeff'@'127.0.0.1';
SET PASSWORD = PASSWORD('mypass'); SET PASSWORD FOR 'jeffrey'@'localhost' = PASSWORD('mypass');