1 导入sql报错

source /opt/test.sql

MySQL问题汇总

解决:

可以在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;

 

相关文章:

  • 2022-12-23
  • 2022-02-16
  • 2021-05-20
  • 2021-08-12
  • 2021-06-01
  • 2022-02-28
  • 2022-12-23
  • 2021-10-02
猜你喜欢
  • 2022-02-24
  • 2021-05-13
  • 2022-01-31
  • 2022-12-23
  • 2021-05-06
  • 2021-05-20
  • 2022-12-23
相关资源
相似解决方案