????1.????????

//???MYSQL
@>mysql -u root -p
@>????
//???????
mysql> insert into mysql.user(Host??User??Password) values("localhost"??"phplamp"??password("1234"));
//?????????
mysql>flush privileges;
??????????????????phplamp  ???????1234  ???????
?????????
mysql>exit;
@>mysql -u phplamp -p
@>????????
mysql>??????

????2.?????????

//???MYSQL????ROOT??????????????ROOT?????.
@>mysql -u root -p
@>????
//????????????????????(phplampDB)
mysql>create database phplampDB;
//???phplamp??????phplamp??????????????
>grant all privileges on phplampDB.* to phplamp@localhost identified by '1234';
//?????????
mysql>flush privileges;
mysql>????????
/*
????????????????????????????????д:
mysql>grant select??update on phplampDB.* to phplamp@localhost identified by '1234';
//??????????
mysql>flush privileges;
*/

????3.????????

@>mysql -u root -p
@>????
mysql>DELETE FROM user WHERE User="phplamp" and Host="localhost";
mysql>flush privileges;
//?????????????
mysql>drop database phplampDB;
4.?????????????
@>mysql -u root -p
@>????
mysql>update mysql.user set password=password('??????') where User="phplamp" and Host="localhost";
mysql>flush privileges;
mysql> desc mysql.user;