1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

BackWpupのデータ復元手順、データベース接続エラーとなる場合

Posted at

バックアップファイルをダウンロードする

03.png

BackWPup > バックアップ
ダウンロードしてください

解凍できない場合

BackWPup > ジョブ > 編集 > アーカイブ形式
スクリーンショット 2024-02-04 6.58.20.png

以下に設定する必要があります。
Windows: ZIP
Mac: Tar GZip

WPを復元する

  1. バックアップファイルを解凍します
  2. FTPソフトを使用してSQLファイル以外を上書き転送します

※SQLファイルとは、『xxxxx.sql.zip』, 『xxxxx.sql.gz』などのこと
※転送には時間がかかると思います

DBを復元する

  1. サーバーのphpAdminにアクセスします
  2. 対象のDBを選択します
  3. インポートを選択します
  4. 先ほど転送しなかったSQLファイルを選択します
  5. 他はそのままで実行を選択します

スクリーンショット 2024-02-04 7.03.21.png

データベース接続確立エラーの場合

スクリーンショット 2024-02-04 6.44.28.png

データベース自体のパスワード等が変更されているとこうなる。
wp-config.phpの以下部分を確認する。

// ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'xxxxx' );

/** Database username */
define( 'DB_USER', 'xxxxx' );

/** Database password */
define( 'DB_PASSWORD', 'xxxxx' );

/** Database hostname */
define( 'DB_HOST', 'xxxxx' );

/** Database charset to use in creating database tables. */
define( 'DB_CHARSET', 'utf8' );

/** The database collate type. Don't change this if in doubt. */
define( 'DB_COLLATE', '' );

終わり

復元できていれば終わりです。
他にもトラブルシューティングがあれば追加します。

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?