mysql-积累管理sql语句

//连接数据库

mysql -h xxx -u root -p;

//查看数据库

show databases

//查看数据表

show tables

//查看某数据表结构

desc xxx表

//修改root密码

http://www.kuqin.com/database/20080306/4249.html

use mysql;

UPDATE user SET Password = PASSWORD('newpass') WHERE user = 'root';

FLUSH PRIVILEGES;

posted @ 2015-01-09 10:09  yo胡yo  阅读(241)  评论(0编辑  收藏  举报