我在docker上跑了mysql服务,搭了个new api自己使用。今天发现好像用不了了,去查看mysql容器直接停了,查看数据库one api数据库直接不见了,变成了这个:
这是表中的内容(我直接挂图片吧,我朋友说那个链接可能是记录ip的,我怕佬友们误点了):
然后这是mysql容器的日志:
2024-05-30T05:04:44.594325Z 0 [System] [MY-015015] [Server] MySQL Server - start.
2024-05-30T05:04:46.791335Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.3.0) starting as process 1
2024-05-30T05:04:46.888693Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2024-05-30T05:04:48.311408Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2024-05-30T05:04:49.216394Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2024-05-30T05:04:49.217555Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2024-05-30T05:04:49.231793Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2024-05-30T05:04:49.476850Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
2024-05-30T05:04:49.477804Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.3.0' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
2024-05-30T05:37:40.805695Z 0 [System] [MY-013172] [Server] Received SHUTDOWN from user <via user signal>. Shutting down mysqld (Version: 8.3.0).
2024-05-30T05:37:44.531612Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.3.0) MySQL Community Server - GPL.
2024-05-30T05:37:44.533039Z 0 [System] [MY-015016] [Server] MySQL Server - end.
2024-05-30 13:37:52+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.3.0-1.el8 started.
2024-05-30 13:37:53+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-05-30 13:37:53+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.3.0-1.el8 started.
'/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
2024-05-30T05:37:54.108403Z 0 [System] [MY-015015] [Server] MySQL Server - start.
2024-05-30T05:37:56.695089Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.3.0) starting as process 1
2024-05-30T05:37:56.793288Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2024-05-30T05:37:58.026725Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2024-05-30T05:37:58.583600Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2024-05-30T05:37:58.585309Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2024-05-30T05:37:58.589505Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2024-05-30T05:37:58.680447Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
2024-05-30T05:37:58.683028Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.3.0' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
2024-06-01T16:20:12.477600Z 3822 [System] [MY-013172] [Server] Received SHUTDOWN from user root. Shutting down mysqld (Version: 8.3.0).
2024-06-01T16:20:14.187725Z 0 [System] [MY-010910] [Server] /usr/sbin/mysqld: Shutdown complete (mysqld 8.3.0) MySQL Community Server - GPL.
2024-06-01T16:20:14.189579Z 0 [System] [MY-015016] [Server] MySQL Server - end.
2024-06-02 01:47:57+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.3.0-1.el8 started.
2024-06-02 01:47:58+08:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
2024-06-02 01:47:58+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.3.0-1.el8 started.
'/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'
2024-06-01T17:47:58.648676Z 0 [System] [MY-015015] [Server] MySQL Server - start.
2024-06-01T17:47:59.763513Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.3.0) starting as process 1
2024-06-01T17:47:59.819055Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2024-06-01T17:48:00.769907Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2024-06-01T17:48:01.707624Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2024-06-01T17:48:01.708744Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2024-06-01T17:48:01.725357Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
2024-06-01T17:48:02.015656Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
2024-06-01T17:48:02.029651Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.3.0' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
除此之外,vps我只开了秘钥登录,日志也没有异常登录