Help us understand the problem. What is going on with this article?

MySQL データベース移行手順

More than 3 years have passed since last update.
  1. 移行元データベースからダンプを作成する

    mysqldump -h HOST_NAME -u USER_NAME -p DATABASE_NAME > DUMP_OUTPUT_FILE_PATH
    
  2. 移行先データベースを作成する

    1. 移行先データベースに接続
    mysql  -h OTHER_HOSTNAME -u USER_NAME -p
    
    1. データベースを作成(文字コードをお忘れなく!)
    create database DATABASE_NAME default character set utf8 default collate utf8_general_ci;
    
  3. 移行先データベースにダンプファイルの中身を読み込む

    mysql -h HOST_NAME -u USER_NAME -p DATABASE_NAME < DUMP_OUTPUT_FILE_PATH
    

参考URL

MySQL データベースのほかのマシンへのコピー(MySQL 5.6 リファレンスマニュアル)

diskshima
インテグリティ・ヘルスケアという東京のスタートアップでソフトウェア・エンジニアやってます。 主に - React.js + Redux - Ruby on Rails - React Native で開発しています。 好きなエディタは Vim です。
integrity-healthcare
テクノロジーを活用した医師の診療支援ソリューションの開発・提供
https://www.integrity-healthcare.co.jp/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした