• ベストアンサー
※ ChatGPTを利用し、要約された質問です(原文:mariadbが稼働しない。)

mariadbが稼働しない

Kaneyan-Rの回答

  • Kaneyan-R
  • ベストアンサー率42% (1249/2912)
回答No.2

だから、いつも言ってますよね。 UNIX/Linux系OSでは、インストールしただけでは動きませんと。 メッセージ出ているのに、何故それに従わないのですか? See "systemctl status mariadb.service" and "journalctl -xe" for details.

jump7799
質問者

お礼

ご回答誠にありがとうございました。 3月 22 19:06:27 localhost.localdomain mysql-prepare-db-dir[5276]: You can find> 3月 22 19:06:27 localhost.localdomain mysql-prepare-db-dir[5276]: the maria-di> 3月 22 19:06:27 localhost.localdomain mysql-prepare-db-dir[5276]: Please check> 3月 22 19:06:27 localhost.localdomain mysql-prepare-db-dir[5276]: at http://ma> 3月 22 19:06:27 localhost.localdomain mysql-prepare-db-dir[5276]: Initializati> 3月 22 19:06:27 localhost.localdomain mysql-prepare-db-dir[5276]: Perhaps /etc> 3月 22 19:06:27 localhost.localdomain mysql-prepare-db-dir[5276]: Initializati> 3月 22 19:06:27 localhost.localdomain mysql-prepare-db-dir[5276]: Files create> 3月 22 19:06:27 localhost.localdomain systemd[1]: mariadb.service: Control pro> 3月 22 19:06:27 localhost.localdomain systemd[1]: mariadb.service: Failed with> 3月 22 19:06:27 localhost.localdomain systemd[1]: Failed to start MariaDB 10.2> -- Subject: Unit mariadb.service has failed -- Defined-By: systemd -- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit mariadb.service has failed. -- -- The result is failed. 3月 22 19:06:27 localhost.localdomain audit[1]: SERVICE_START pid=1 uid=0 auid> ESCOD 3月 22 19:06:27 localhost.localdomain mysql-prepare-db-dir[5276]: Try 'mysqld > 3月 22 19:06:27 localhost.localdomain mysql-prepare-db-dir[5276]: --general-lo> 3月 22 19:06:27 localhost.localdomain mysql-prepare-db-dir[5276]: The latest i> 3月 22 19:06:27 localhost.localdomain mysql

jump7799
質問者

補足

FEDORA28を使っています。

関連するQ&A

  • apache2 failed

    いつも大変お世話になり誠にありがとうございます。 下記の様にアパッチがアクティブになりません。 どうしたらアクティブになるでしょうか? ご回答のほど、宜しくお願い申し上げます。 # systemctl start apache2 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details. localhost:/home/kouzou # zypper install apache2 Loading repository data... Reading installed packages... 'apache2' is already installed. No update candidate for 'apache2-2.4.53-1.2.x86_64'. The highest available version is already installed. Resolving package dependencies... Nothing to do. localhost:/home/kouzou # systemctl start apache2 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.

  • CentOS7にMariaDBのインストール

    CentOS7のサーバーにMariaDBをインストールしたいと思っています。 RPMパッケージは配布されているのでしょうか。 インターネットを検索するとどのサイトもyumを使用してインストールが 行われています。対象のサーバーからインターネットにはつながらないので 「rpm -ivh xxxxx.rpm」 みたいな感じでコマンドを実行してMariaDBの インストールを行いたいと思っています。

  • fedora22 vsftpdが起動できない

    自宅サーバーを作ろうと思って www.server-world.info/query?os=Fedora_22&p=install  を参照して作業していますがftpサーバーでvsftpdをインストールして設定。 systemctl start vsftpd で起動すると以下のエラー Job for vsftpd.service failed. See "systemctl status vsftpd.service" and "journalctl -xe" for detai 何度も再インストールしても結果は同じです。 パソコン歴はwin5年 英語が苦手な70歳 どなたかご指導いただけませんか。

  • Apache2 failed

    これ、どうすれば直るでしょうか? どうか、ご回答願います。 # systemctl restart apache2 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. root@GN164:/var# systemctl restart apache2 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. root@GN164:/var# systemctl status apache2.service ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor prese> Active: failed (Result: exit-code) since Tue 2020-08-25 08:05:56 JST; 2min> Docs: https://httpd.apache.org/docs/2.4/ Process: 6775 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FA> 8月 25 08:05:56 GN164 systemd[1]: Starting The Apache HTTP Server... 8月 25 08:05:56 GN164 apachectl[6783]: AH00526: Syntax error on line 13 of /et> 8月 25 08:05:56 GN164 apachectl[6783]: <VirtualHost> cannot occur within <Virt> 8月 25 08:05:56 GN164 apachectl[6775]: Action 'start' failed. 8月 25 08:05:56 GN164 apachectl[6775]: The Apache error log may have more info> 8月 25 08:05:56 GN164 systemd[1]: apache2.service: Control process exited, cod> 8月 25 08:05:56 GN164 systemd[1]: apache2.service: Failed with result 'exit-co> 8月 25 08:05:56 GN164 systemd[1]: Failed to start The Apache HTTP Server. [1]+ 停止 systemctl status apache2.service root@GN164:/var# journalctl -xe 8月 25 08:05:56 GN164 apachectl[6775]: The Apache error log may have more info> 8月 25 08:05:56 GN164 systemd[1]: apache2.service: Control process exited, cod> -- Subject: Unit process exited -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- An ExecStart= process belonging to unit apache2.service has exited. -- -- The process' exit code is 'exited' and its exit status is 1. 8月 25 08:05:56 GN164 systemd[1]: apache2.service: Failed with result 'exit-co> -- Subject: Unit failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- The unit apache2.service has entered the 'failed' state with result 'exit-co> 8月 25 08:05:56 GN164 systemd[1]: Failed to start The Apache HTTP Server. -- Subject: A start job for unit apache2.service has failed -- Defined-By: systemd -- Support: http://www.ubuntu.com/support -- -- A start job for unit apache2.service has finished with a failure. -- -- The job identifier is 2046 and the job result is failed. lines 1313-1335/1335 (END)

  • どうすればエラーが消えるでしょうか?

    MariaDB [(none)]> CREATE USER 'kouzou'@'li*************r.club' IDENTIFIED BY 'rhythmkt0'; ERROR 1396 (HY000): Operation CREATE USER failed for 'kouzou'@'li************r.club'

    • ベストアンサー
    • MySQL
  • $ sudo nano 50-server.cnf

    $ sudo apt install mariadb-server $ cd /etc/mysql/mariadb.conf.d/ $ sudo nano 50-server.cnf #111-112行目編集 character-set-server = utf8 #collation-server = utf8mb4_general_ci $ sudo systemctl restart mariadb 度々すいません。 $ sudo nano 50-server.cnf で中身のデータが消えてしまいました。 nanoは行数が書いてないのでviで編集してもいいだろう。と、思いました。 すると、何も書いてないのです。 geditも何も書いてありませんでした。 どう対処すればいいでしょうか? ご回答の程、宜しくお願い申し上げます。

    • ベストアンサー
    • MySQL
  • apache2が起動しない。

    いつもお世話になり誠にありがとうございます。 標記の件。 下記のとおり、どうしてもapache2が起動しません。 どう対処すればいいでしょうか? ご回答の程、宜しくお願い申し上げます。    記 systemctl stop apache2 localhost:/home/kou # systemctl start apache2 Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details. localhost:/home/kou # systemctl status apache2.service × apache2.service - The Apache Webserver Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Mon 2022-06-27 07:38:22 JST; 1min 4s ago Process: 9015 ExecStart=/usr/sbin/start_apache2 -DSYSTEMD -DFOREGROUND -k start (code=exited, status=1/FA> Main PID: 9015 (code=exited, status=1/FAILURE) Status: "Reading configuration..." Jun 27 07:38:22 localhost systemd[1]: Starting The Apache Webserver... Jun 27 07:38:22 localhost start_apache2[9015]: (98)Address already in use: AH00072: make_sock: could not bind> Jun 27 07:38:22 localhost start_apache2[9015]: (98)Address already in use: AH00072: make_sock: could not bind> Jun 27 07:38:22 localhost start_apache2[9015]: no listening sockets available, shutting down Jun 27 07:38:22 localhost start_apache2[9015]: AH00015: Unable to open logs Jun 27 07:38:22 localhost systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE Jun 27 07:38:22 localhost systemd[1]: apache2.service: Failed with result 'exit-code'. Jun 27 07:38:22 localhost systemd[1]: Failed to start The Apache Webserver. lines 1-15/15 (END)

  • [y]を5回ほど入力する画面にならない。

    $ mysql -u root -p Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) $ sudo apt install mysql-server mysql-client パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています 状態情報を読み取っています... 完了 以下のパッケージが自動でインストールされましたが、もう必要とされていません: galera-3 libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libjemalloc1 libterm-readkey-perl mariadb-common socat これを削除するには 'sudo apt autoremove' を利用してください。 以下の追加パッケージがインストールされます: libevent-core-2.1-6 mysql-client-5.7 mysql-client-core-5.7 mysql-server-5.7 mysql-server-core-5.7 提案パッケージ: mailx tinyca 以下のパッケージは「削除」されます: mariadb-client mariadb-client-10.1 mariadb-client-core-10.1 mariadb-server mariadb-server-10.1 mariadb-server-core-10.1 以下のパッケージが新たにインストールされます: libevent-core-2.1-6 mysql-client mysql-client-5.7 mysql-client-core-5.7 mysql-server mysql-server-5.7 mysql-server-core-5.7 アップグレード: 0 個、新規インストール: 7 個、削除: 6 個、保留: 0 個。 20.4 MB 中 0 B のアーカイブを取得する必要があります。 この操作後に 11.0 MB のディスク容量が解放されます。 続行しますか? [Y/n] y パッケージを事前設定しています ... (データベースを読み込んでいます ... 現在 190376 個のファイルとディレクトリがインストールされています。) mariadb-client (1:10.1.38-0ubuntu0.18.04.1) を削除しています ... mariadb-server (1:10.1.38-0ubuntu0.18.04.1) を削除しています ... mariadb-server-10.1 (1:10.1.38-0ubuntu0.18.04.1) を削除しています ... mariadb-client-10.1 (1:10.1.38-0ubuntu0.18.04.1) を削除しています ... mariadb-client-core-10.1 (1:10.1.38-0ubuntu0.18.04.1) を削除しています ... mariadb-server-core-10.1 (1:10.1.38-0ubuntu0.18.04.1) を削除しています ... 以前に未選択のパッケージ mysql-client-core-5.7 を選択しています。 (データベースを読み込んでいます ... 現在 190107 個のファイルとディレクトリがインストールされています。) .../0-mysql-client-core-5.7_5.7.25-0ubuntu0.18.04.2_amd64.deb を展開する準備をしています ... mysql-client-core-5.7 (5.7.25-0ubuntu0.18.04.2) を展開しています... 以前に未選択のパッケージ mysql-client-5.7 を選択しています。 .../1-mysql-client-5.7_5.7.25-0ubuntu0.18.04.2_amd64.deb を展開する準備をしています ... mysql-client-5.7 (5.7.25-0ubuntu0.18.04.2) を展開しています... 以前に未選択のパッケージ mysql-server-core-5.7 を選択しています。 .../2-mysql-server-core-5.7_5.7.25-0ubuntu0.18.04.2_amd64.deb を展開する準備をしています ... mysql-server-core-5.7 (5.7.25-0ubuntu0.18.04.2) を展開しています... 以前に未選択のパッケージ libevent-core-2.1-6:amd64 を選択しています。 .../3-libevent-core-2.1-6_2.1.8-stable-4build1_amd64.deb を展開する準備をしています ... libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) を展開しています... 以前に未選択のパッケージ mysql-server-5.7 を選択しています。 .../4-mysql-server-5.7_5.7.25-0ubuntu0.18.04.2_amd64.deb を展開する準備をしています ... Downgrade from (at least) 10.1 to 5.7 is not possible. Packaging maintenance of MySQL will stop and the daemon disabled to prevent damage to your system. For help, see /etc/mysql/FROZEN mysql-server-5.7 (5.7.25-0ubuntu0.18.04.2) を展開しています... 以前に未選択のパッケージ mysql-client を選択しています。 .../5-mysql-client_5.7.25-0ubuntu0.18.04.2_all.deb を展開する準備をしています ... mysql-client (5.7.25-0ubuntu0.18.04.2) を展開しています... 以前に未選択のパッケージ mysql-server を選択しています。 .../6-mysql-server_5.7.25-0ubuntu0.18.04.2_all.deb を展開する準備をしています ... mysql-server (5.7.25-0ubuntu0.18.04.2) を展開しています... libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) を設定しています ... ureadahead (0.100.0-20) のトリガを処理しています ... mysql-server-core-5.7 (5.7.25-0ubuntu0.18.04.2) を設定しています ... libc-bin (2.27-3ubuntu1) のトリガを処理しています ... systemd (237-3ubuntu10.12) のトリガを処理しています ... man-db (2.8.3-2ubuntu0.1) のトリガを処理しています ... ubuntu18.04 どうしてこうなるのでしょうか? 宜しくお願い申し上げます。

    • ベストアンサー
    • MySQL
  • ibus-mozc のインストール全然解りません。

    いつも教えていただき誠にありがとうございます。 標記の件。 http://note.kurodigi.com/centos7-ibusmozc/ を紹介されてやってみましたが、コマンドをコピーして打っても 何かマイナスイメージの反応ばかりです。 自分でも簡単なサイトはないか探しましたが 上記のサイトが1番解りやすいそうです。 申し遅れましたが、CentOS7にibus-mozcをインストールしています。 下記に上記サイトの一部をコピーしました。 何かヒントをください。 宜しくお願い申し上げます。 記 http://rpm.pbone.net/で検索して以下のパッケージをダウンロードしましょう。Fedora19 for x86_64のパッケージであることに注意してください。OpenSUSE等のパッケージが混ざると依存性に問題が生じます。 ********** ※2015/08/07追記 http://rpmfind.net/ではFedora19 for x86_64のパッケージが無くなったとコメントいただきました。2015年8月7日現在http://rpm.pbone.net/では存在を確認しております。こちらからパッケージを入手いただければと思います。 ********** 11 ibus-mozc-1.10.1390.102-1.fc19.x86_64.rpm mozc-1.10.1390.102-1.fc19.x86_64.rpm protobuf-2.5.0-4.fc19.x86_64.rpm zinnia-0.06-16.fc19.x86_64.rpm zinnia-tomoe-0.06-16.fc19.x86_64.rpm rpmパッケージのインストール 依存性の問題からインストール順番は重要ですので注意してください。 ********** ※2015/08/07追記 インストールの順番はひとつ一つインストールする場合です。全てのパッケージを一つのコマンドでまとめてインストールする場合は順序は気にしないでも大丈夫です。誤解を生む書き方をしたことをお詫びします。 ********** 注1)rpmコマンドでも問題ありません。 注2)sudoコマンドについてはDebianやFedoraでsudoコマンドを使うをご覧ください。 #1 protobufのインストール sudo yum localinstall protobuf-2.5.0-4.fc19.x86_64.rpm #2 zinniaのインストール sudo yum localinstall zinnia-0.06-16.fc19.x86_64.rpm #3 zinnia-tomoeのインストール sudo yum localinstall zinnia-tomoe-0.06-16.fc19.x86_64.rpm #4 mozcのインストール sudo yum localinstall mozc-1.10.1390.102-1.fc19.x86_64.rpm #5 ibus-mozcのインストール sudo yum localinstall ibus-mozc-1.10.1390.102-1.fc19.x86_64.rpm

  • Ubuntuでのデータディレクトリの変更

    Raspberry Pi 3にインストールしたUbuntu Mate 16.04にMySQLをインストールしました。 そこで、データディレクトリを外付けHDDに移動しようと考えています。 (外付けHDDは/dataにマウント済みでchmod 777 /dataとしてあります。) uname -a は Linux raspberry 4.4.13-v7+ #893 SMP Wed Jun 8 14:39:18 BST 2016 armv7l armv7l armv7l GNU/Linux mysqld --version は mysqld Ver 5.7.12-0ubuntu1 for Linux on armv7l ((Ubuntu)) となっています。 行ったこと。 ・sudo apt-get install mysql-server ・sudo systemctl stop mysql ・sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf で datadir = /var/lib/mysql から datadir = /data/mysql に変更 ・sudo vi /etc/apparmor.d/local/usr.sbin.mysqld に /data/mysql r, /data/mysql/** rwk, を追加。 ・sudo mv /var/lib/mysql /var/lib/mysql.orig ・sudo mysqld --initialize ここまでで/data/mysqlが作成され、その下に/var/lib/mysql.origと同じファイルやディレクトリが作成されたことを確認しました。 そこで、 sudo systemctl start mysql を実行すると Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. と出てMySQLの起動に失敗します。 systemctl status mysql.service の結果は ● mysql.service - MySQL Community Server Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled) Active: inactive (dead) (Result: exit-code) since 日 2016-06-12 23:38:36 JST; 16s ago Process: 10181 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited, status=0/SUCCESS) Process: 10180 ExecStart=/usr/sbin/mysqld (code=exited, status=0/SUCCESS) Process: 13372 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited, status=1/FAILURE) Main PID: 10180 (code=exited, status=0/SUCCESS) 6月 12 23:38:35 raspberry systemd[1]: Failed to start MySQL Community Server. 6月 12 23:38:35 raspberry systemd[1]: mysql.service: Unit entered failed state. 6月 12 23:38:35 raspberry systemd[1]: mysql.service: Failed with result 'exit-code'. 6月 12 23:38:36 raspberry systemd[1]: mysql.service: Service hold-off time over, scheduling restart. 6月 12 23:38:36 raspberry systemd[1]: Stopped MySQL Community Server. 6月 12 23:38:36 raspberry systemd[1]: mysql.service: Start request repeated too quickly. 6月 12 23:38:36 raspberry systemd[1]: Failed to start MySQL Community Server. となっています。 journal -xe の結果は -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit brltty.service has finished shutting down. 6月 12 23:41:26 raspberry systemd[1]: Started Braille Device Support. -- Subject: Unit brltty.service has finished start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit brltty.service has finished starting up. -- -- The start-up result is done. 6月 12 23:41:26 raspberry systemd[13418]: brltty.service: Failed at step SECCOMP spawning /bin/sh: Invalid argument -- Subject: Process /bin/sh could not be executed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- The process /bin/sh could not be executed and failed. -- -- The error number returned by this process is 22. 6月 12 23:41:26 raspberry systemd[1]: brltty.service: Main process exited, code=exited, status=228/SECCOMP 6月 12 23:41:26 raspberry systemd[1]: brltty.service: Unit entered failed state. 6月 12 23:41:26 raspberry systemd[1]: brltty.service: Failed with result 'exit-code'. となっています。 ここまで行って手詰まりになってしまいました。 大変恐縮ですが、ここまでの手順で足りないところ、間違っているところなどありましたらご教示ください。 よろしくお願いいたします。