eg:use fmtninja;
show tables;
(本次我们只用到article表和article_category表!!!)
eg:desc article;
eg:CREATE USER 'fmtninja2014'@'localhost' IDENTIFIED BY 'fmtninja2014';
eg:SET PASSWORD FOR 'fmtninja2014'@'localhost'=PASSWORD('fmtninja');
SET PASSWORD =PASSWORD('fmtninja');
eg:GRANTINSERT,UPDATE,DELETE,SELECT ON fmtninja.* TO fmtninja2014@localhost;
eg:GRANTINSERT,UPDATE,DELETE,SELECT ON fmtninja.* TO fmtninja2014@localhost IDENTIFIED BY "fmtninja";
eg:REVOKE DELETE ON fmtninja.* FROM fmtninja2014@localhost;
eg:DROP USER fmtninja2014@localhost;
eg:mysqldump -uroot -proot fmtninja>D:\fmtninja20140330.sql;
12.数据库恢复;
注意,本方法恢复可能会出问题!!!