LoginSignup
0
0

More than 3 years have passed since last update.

MySQLでクライアント(v8)からサーバー(v5.7)でのDumpファイル取得方法

Posted at
# 実行
mysqldump --column-statistics=0 -u root -p -h [HOST] [DB]  > dump.txt
# エラー
mysqldump: Couldn't execute 'SELECT COLUMN_NAME,                      
JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"')                
FROM information_schema.COLUMN_STATISTICS                
WHERE SCHEMA_NAME = '[DB]' AND TABLE_NAME = 'action_histories';'
: Unknown table 'COLUMN_STATISTICS' in information_schema (1109)

--column-statistics=0をパラメタ指定することで実行できるようになる`

mysqldump --column-statistics=0 -u root -p -h [HOST] [DB]  > dump.txt
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0