gdap
@gdap (gdap)

Are you sure you want to delete the question?

Leaving a resolved question undeleted may help others!

mysqlを起動することができない

解決したいこと

ubuntu20.04でmysqlのバージョン8.0.23を起動しようしたのですが下記のようなエラーが発生しました。

$ 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.

"$ sudo less /var/log/mysql/error.log"でログを調べたところ、

2021-02-04T06:51:08.411568Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.23-0ubuntu0.20.04.1) initializing of server in progress as process 399 
2021-02-04T06:51:08.445731Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-02-04T06:51:08.480245Z 1 [ERROR] [MY-012585] [InnoDB] Linux Native AIO interface is not supported on this platform. Please check your OS documentation and 
install appropriate binary of InnoDB.
2021-02-04T06:51:08.480730Z 1 [Warning] [MY-012654] [InnoDB] Linux Native AIO disabled.
2021-02-04T06:51:11.103598Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2021-02-04T06:51:14.689946Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2021-02-04T06:51:17.824004Z 6 [System] [MY-013172] [Server] Received SHUTDOWN from user boot. Shutting down mysqld (Version: 8.0.23-0ubuntu0.20.04.1).
2021-02-04T06:51:22.483862Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.23-0ubuntu0.20.04.1) starting as process 447
2021-02-04T06:51:22.713562Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2021-02-04T06:51:22.809947Z 1 [ERROR] [MY-012585] [InnoDB] Linux Native AIO interface is not supported on this platform. Please check your OS documentation and 
install appropriate binary of InnoDB.

と出てきます。解決策を教えてください。

自分で試したこと

エラーの内容をググったのですがよくわかりませんでした。解決法を教えていただけるとうれしいです。

0

1Answer

/var/log/mysql/~とか/var/log/mysql~辺りのログを見てみるのはいかがでしょうか。

0Like

Comments

  1. @gdap

    Questioner

    回答ありがとうございます。ログを見ていろいろやってみて、

    ```
    Job for mysql.service failed because the control process exited with error code.
    See "systemctl status mysql.service" and "journalctl -xe" for details.
    ```
    のエラーはなくなったのですが、次に

    ```
    Failed to get properties: Connection reset by peer
    ```
    というエラーが出てきました。これはパソコンの容量の問題でしょうか?
  2. 不勉強で存じません。
    この件をクローズして、新たな質問として投稿されることをお勧めします。
    お力になれず、申し訳ございません。
  3. @gdap

    Questioner

    回答していただきありがとうございます。

Your answer might help someone💌