MySQL常用操作
打开mysql:mysql -u root -p
数据库列表:show databases;
选择数据库:use <database_name>
表列表:show tables;
查看表:select * from <table_name>;
创建账号:create user '用户名'@'localhost' identified by '密码';
修改账号密码: ALTER USER root@localhost IDENTIFIED BY 'root' ;
修改行:*update wp_users set user_pass=MD5('密码') where ID='用户id';*
刷新配置:flush privileges;
重启服务:service mysql restart