MySQL问题汇总

1 导入sql报错

source /opt/test.sql

解决:

可以在my.cnf中添加binary-mode=1 或者 mysql --binary-mode=1 -uroot -p123456 < 123.sql

2 mysql 查看数据库中所有表的记录数 

use information_schema;
select table_name,table_rows from tables where TABLE_SCHEMA = 'testdb' order by table_rows desc;

 

posted @ 2016-04-17 19:23  Jager  阅读(574)  评论(0编辑  收藏  举报