機能追加 #1886
【i-generation移管作業】mysqldumpコマンド
ステータス: | 新規 | 開始日: | 2020/10/09 | |
---|---|---|---|---|
優先度: | 通常 | 期日: | ||
担当者: | - | 進捗 %: | 0% | |
カテゴリ: | - | 作業時間の記録: | - | |
対象バージョン: | - |
説明
mysqldump -u root -p --default-character-set=binary --flush-logs --master-data=2 aff_test > aff_test.dump
EC2から
mysqldump -h 182.48.31.137 -u ec2_user -p --default-character-set=binary --flush-logs --master-data=2 aff_test > aff_test.dump
※passは、mysql
$ head -30 aff_test.dump -- MySQL dump 10.11 -- -- Host: localhost Database: aff_test -- ------------------------------------------------------ -- Server version 5.0.77-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES binary */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Position to start replication or point-in-time recovery from -- -- CHANGE MASTER TO MASTER_LOG_FILE='mysql-bin.001571', MASTER_LOG_POS=98; -- -- Table structure for table `access_action_log_200901` -- DROP TABLE IF EXISTS `access_action_log_200901`; SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8;