MariaDBにタスクを再開させる方法は?

MariaDBにタスクを再開させる方法は?

WordPressサイトを開発しており、私に適した非データベースHTMLバージョンを入手しています。 データ収集たとえば、次のように正しく実行されます。https://orthodoxchurchfathers.comそしてhttps://searchgkchesterton.comを実行して、wget -r --no-check-certificate https://cjshayward.comデータベースに依存せずにページを別々のファイルとして使用してサイトの部分バージョンを作成します。

動作していることを確認すると、「データベース接続設定エラー」というWordPressエラーページが表示されました。少し見回した後、Mariadbのサーバーが実行されておらず、再起動後もまだ実行されていないことがわかりました。

コマンドラインから:

# service mysqld start
Job for mariadb.service failed because the control process exited with error code.
See "systemctl status mariadb.service" and "journalctl -xe" for details.
root@technoluddites:~/wordpress/wp-content# systemctl status mariadb.service
● mariadb.service - MariaDB 10.3.22 database server
   Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2022-11-15 12:44:41 CST; 15s ago
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
  Process: 5287 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
  Process: 5288 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 5290 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ]   && systemctl set-environment _WSREP_STA
  Process: 5342 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=1/FAILURE)
 Main PID: 5342 (code=exited, status=1/FAILURE)
   Status: "MariaDB server is down"

Nov 15 12:44:34 technoluddites.org systemd[1]: Starting MariaDB 10.3.22 database server...
Nov 15 12:44:35 technoluddites.org mysqld[5342]: 2022-11-15 12:44:35 0 [Note] /usr/sbin/mysqld (mysqld 10.3.22-MariaDB-0+deb10u1) starting as process 5342 ...
Nov 15 12:44:41 technoluddites.org systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
Nov 15 12:44:41 technoluddites.org systemd[1]: mariadb.service: Failed with result 'exit-code'.
Nov 15 12:44:41 technoluddites.org systemd[1]: Failed to start MariaDB 10.3.22 database server.
root@technoluddites:~/wordpress/wp-content# journalctl -xe
Nov 15 12:45:15 technoluddites.org postfix/smtp[5479]: connect to partcafe.com[162.210.199.85]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5475]: connect to xrumer.app[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5482]: connect to shavers.hair[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5487]: connect to hard.raytoy.com[23.82.12.35]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5476]: connect to hard.raytoy.com[37.48.65.136]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5483]: connect to makeup.blue[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5491]: connect to free.pieurl.com[81.171.28.46]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5485]: connect to partcafe.com[23.82.12.37]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5484]: connect to hard.raytoy.com[37.48.65.136]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5480]: connect to xrummer.com[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5474]: connect to koobiyocabs.com[99.83.154.118]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5489]: connect to partcafe.com[185.107.56.54]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5497]: connect to customketodiet.tips[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5377]: connect to customketodiet.kitchen[99.83.154.118]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5499]: connect to partcafe.com[185.107.56.54]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5372]: connect to xrummer.com[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5486]: connect to 1000welectricscooter.com[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5504]: connect to e.razore100.fans[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5481]: connect to chestpain.one[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5502]: connect to thailandmovers.com[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5492]: connect to linkbuildingtools.club[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5505]: connect to c.bangkokremovals.com[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5506]: connect to a.roofvent.xyz[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5376]: connect to xrummer.com[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5494]: connect to c.razore100.fans[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5496]: connect to e.shavers.hair[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5495]: connect to d.japantravel.network[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5383]: connect to customketodiet.kitchen[99.83.154.118]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5501]: connect to a.singaporetravel.network[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5369]: connect to a.southafricatravel.club[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5503]: connect to f.babyteeth.club[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5507]: connect to dnatest.news[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5498]: connect to i.most-wanted-stuff.com[64.44.23.135]:25: Connection timed out
Nov 15 12:45:15 technoluddites.org postfix/smtp[5381]: connect to a.australia-travel.news[64.44.23.135]:25: Connection timed out
Nov 15 12:45:17 technoluddites.org CRON[5523]: pam_unix(cron:session): session closed for user root
Nov 15 12:45:20 technoluddites.org sshd[5666]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=212.34.245.65  user=root
Nov 15 12:45:22 technoluddites.org sshd[5666]: Failed password for root from 212.34.245.65 port 43956 ssh2
Nov 15 12:45:23 technoluddites.org sshd[5666]: Received disconnect from 212.34.245.65 port 43956:11: Bye Bye [preauth]
Nov 15 12:45:23 technoluddites.org sshd[5666]: Disconnected from authenticating user root 212.34.245.65 port 43956 [preauth]
Nov 15 12:45:25 technoluddites.org sshd[5668]: Connection closed by 125.119.1.16 port 21724 [preauth]

今まで私が行った検索では、「言及する価値がない場合はデータディレクトリを消去してください」と言い、MariaDBを再インストールする必要があるかもしれませんが、失いたくない場合はどうすればよいかについての提案はありませんでした。それは実際に私のデータベースに保存する価値があります。

私のサイトに小さなテープを貼り付け、WordPressのインストールディレクトリをタールとして指定し、次の操作を行いました。

# for x in `find . -name \*.html`; do cp --parents $x ~/wordpress; echo $x; done

wgetで作成されたスナップショットで〜/wordpress/index.phpの名前を変更した後、サイトは以前とほぼ同じになります。したがって、これまで症状は少なくとも部分的に抑制されていますが、問題を解決するのには役に立ちません。

次に考えたのは、データベースファイルを削除するのではなく、別の場所に移動して動作させることができることを確認し、MariaDBの起動を妨げる要因が何であるかを確認できることです。

報告された問題なしに、以前に再帰wgetを実行しました。

wgetを試してください。データベースのクローズまたはクローズをトリガーするには?

データベースを削除せずにMariaDBを動作させるにはどうすればよいですか?

データベースを体系的に移動し、MariaDBが起動していることを確認する以外に他の方法はありますか?

MySQLに切り替えるのは合理的ですか?

ベストアンサー1

あなたは知らなければなりませんなぜMariaDBが起動しませんでした。このページを見るMariaDBに関するトラブルシューティングのアドバイスウェブサイト。

それは言う:

失敗の理由は、ほぼ確実にエラーログに記録されるか、MariaDBを手動で起動した場合にコンソールに記録されます。デフォルトでは、エラーログの名前はhost-name.errとして指定され、データディレクトリに書き込まれます。一般的な場所:

/var/ログ/

/var/log/mysql

ログに十分な情報が表示されない場合は、以下を試してください。ロギングの詳細度を上げます。MariaDBを再起動してみてください。

おすすめ記事