use mysql;
show tables;
select column_name from information_schema.columns where table_name='user';
INSERT INTO user (host,user,password,select_priv,insert_priv,update_priv) VALUE ('localhost','naruto',PASSWORD('123456'),'y','y','y');
FLUSH PRIVILEGES;
select host,user,password from user where user='naruto';
密碼是被加密過的!!
留言
張貼留言