Mysql says it failed to start but is up anyway?


I’me running MySQL 8 under Ubuntu 20.04 WSL2

I’m starting MySQL with sudo service mysql restart

Output is:

* Stopping MySQL database server mysqld      [ok] * Starting MySQL database server mysqld      [fail] 

But when I now run sudo service mysql status, I get:

 * /usr/bin/mysqladmin  Ver 8.0.21-0ubuntu0.20.04.4 for Linux on x86_64 ((Ubuntu)) Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.  Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.  Server version          8.0.21-0ubuntu0.20.04.4 Protocol version        10 Connection              Localhost via UNIX socket UNIX socket             /var/run/mysqld/mysqld.sock Uptime:                 45 sec  Threads: 2  Questions: 4  Slow queries: 0  Opens: 430  Flush tables: 3  Open tables: 27  Queries per second avg: 0.088 

Error log is:

2020-09-11T22:15:33.048074Z 11 [System] [MY-013172] [Server] Received SHUTDOWN from user debian-sys-maint. Shutting down mysqld (Version: 8.0.21-0ubuntu0.20.04.4). 2020-09-11T22:15:33.136150Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.0.21-0ubuntu0.20.04.4)  (Ubuntu). 2020-09-11T22:15:33.231510Z mysqld_safe mysqld from pid file /var/lib/mysql/LAPTOP-77E86FL8.pid ended 2020-09-11T22:15:34.784720Z mysqld_safe Logging to '/var/log/mysql/error.log'. 2020-09-11T22:15:35.002180Z mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql 2020-09-11T22:15:35.073728Z 0 [Warning] [MY-010139] [Server] Changed limits: max_open_files: 1024 (requested 8161) 2020-09-11T22:15:35.073742Z 0 [Warning] [MY-010142] [Server] Changed limits: table_open_cache: 431 (requested 4000) 2020-09-11T22:15:35.392127Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.21-0ubuntu0.20.04.4) starting as process 6495 2020-09-11T22:15:35.412902Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2020-09-11T22:15:35.992356Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2020-09-11T22:15:36.261631Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock 2020-09-11T22:15:36.404215Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2020-09-11T22:15:36.404659Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2020-09-11T22:15:36.456568Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.21-0ubuntu0.20.04.4'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu). 

My issue is that sudo service mysql restart returns a non-zero status code.

What may I check or look for?

Thank you!