サーバー・WordPressを利用して間もなく初心者な状態ですが
現在ローカル環境構築ソフトのLocalを使用しWordPressのサイト制作を行っています。
本番のレンタルサーバーにてマルチドメインを取得し既にWordPressがインストールされていてるディレクトリ(public_html内)に新しくWordPressを入れローカルから移行したく、試みている状況です。
しかし、途中エラー等が出てきてしまいうまく移行ができません。
###現在実行した工程と進捗とエラー内容
1.Localを使用したWordPressの構築(サイト制作)
2.ローカル環境のデータベースの取得(指定サイトでのエクスポート)
3.エクスポートしたsqlファイルを本番環境へインポート
4.WordPressのファイルを公式にてダウンロードし、FTPソフト(FileZilla)を使用して
ドラッグ&ドロップでアップロード
⇒wp-config.php内のDB情報は本番環境のものへ変更してアップロードしています。
5.Search Replace DBのソフトをダウンロード・指定ディレクトリへアップロードし
指定URLへアクセスし、URLの一括置換
⇒現在ここでエラーが発生
URL
1http://自分のドメイン名/Search-Replace-DB-master/index.php
error
1 2Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/1406610891/test/public_html/testsite/Search-Replace-DB-master/srdb.class.php on line 861 3Error establishing a database connection 4This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at [サーバー名]. This could mean your host’s database server is down. 5 6Are you sure you have the correct username and password? 7Are you sure you have typed the correct hostname? 8Are you sure the database server is running? 9If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
WordPressをドラッグアンドドロップしただけなのが原因なのかと推測し
指定ドメインに手動でインストールを試みるもやはり下記のようにエラーが発生します。
ちなみにサーバーサイトでの簡単インストールのようなツールは既に構築済みの環境にて利用しているため使用できませんでした。
URL
1http://自分のドメイン名/wp-admin/install.php
error
1Error establishing a database connection 2This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at [サーバー名]. This could mean your host’s database server is down. 3 4Are you sure you have the correct username and password? 5Are you sure you have typed the correct hostname? 6Are you sure the database server is running? 7If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
どこに原因があるのかがわからず、どうしたらマルチドメインにて複数のWordPressが運用できるようになるのでしょうか。
教えてください
####スペック情報 使用ツール
Windows10 64bit
FTPソフト:FileZilla
エディタ:Sublimetext3
ブラウザ:GoogleChrome
ローカル環境ソフト:Local
環境内スペック
・PHPVersion 7.3.2
・WordPressVersion 5.3
・My SQL 8.0.16
本番環境へアップロードしたWordPressVersion:5.3
回答1件
あなたの回答
tips
プレビュー