You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[root@localhost polardbx-engine]# 2024-06-19T01:59:27.350421Z mysqld_safe Logging to '/home/polarx/polardbx-engine/log/alert.log'.
2024-06-19T01:59:27.372628Z mysqld_safe Starting mysqld daemon with databases from /home/polarx/polardbx-engine/data
2024-06-19T01:59:27.596497Z mysqld_safe mysqld from pid file /home/polarx/polardbx-engine/run/mysql.pid ended
^C
[1]+ Done /opt/polardbx_engine/bin/mysqld_safe --defaults-file=my.cnf
alert.log
2024-06-19T01:52:51.773144Z 0 [System] [MY-025030] [XPaxos] XPaxos server start.
2024-06-19T01:52:51.775126Z 0 [Warning] [MY-011069] [Server] The syntax '--master-info-repository' is deprecated and will be removed in a future release.
2024-06-19T01:52:51.775138Z 0 [Warning] [MY-011069] [Server] The syntax '--relay-log-info-repository' is deprecated and will be removed in a future release.
2024-06-19T01:52:51.775233Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2024-06-19T01:52:51.775251Z 0 [System] [MY-013169] [Server] /opt/polardbx_engine/bin/mysqld (mysqld 8.0.32-X-Cluster-8.4.19) initializing of server in progress as process 141919
2024-06-19T01:52:51.777254Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2024-06-19T01:52:51.777281Z 0 [ERROR] [MY-013236] [Server] The designated data directory /home/polarx/polardbx-engine/data/ is unusable. You can remove all files that the server added to it.
2024-06-19T01:52:51.778784Z 0 [ERROR] [MY-010119] [Server] Aborting
2024-06-19T01:52:51.783992Z 0 [System] [MY-010910] [Server] /opt/polardbx_engine/bin/mysqld: Shutdown complete (mysqld 8.0.32-X-Cluster-8.4.19) Source distribution.
The text was updated successfully, but these errors were encountered:
“2024-06-19T01:52:51.777254Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.”
从日志看,这里执行的是安装过程,显示数据目录下有文件,无法从0开始安装。如果您已经安装过数据库,只是想启动,则应去掉--initialize,请检查一下my.cnf里是否有initialize
执行了/opt/polardbx_engine/bin/mysqld_safe --defaults-file=my.cnf &
[root@localhost polardbx-engine]# 2024-06-19T01:59:27.350421Z mysqld_safe Logging to '/home/polarx/polardbx-engine/log/alert.log'.
2024-06-19T01:59:27.372628Z mysqld_safe Starting mysqld daemon with databases from /home/polarx/polardbx-engine/data
2024-06-19T01:59:27.596497Z mysqld_safe mysqld from pid file /home/polarx/polardbx-engine/run/mysql.pid ended
^C
[1]+ Done /opt/polardbx_engine/bin/mysqld_safe --defaults-file=my.cnf
alert.log
2024-06-19T01:52:51.773144Z 0 [System] [MY-025030] [XPaxos] XPaxos server start.
2024-06-19T01:52:51.775126Z 0 [Warning] [MY-011069] [Server] The syntax '--master-info-repository' is deprecated and will be removed in a future release.
2024-06-19T01:52:51.775138Z 0 [Warning] [MY-011069] [Server] The syntax '--relay-log-info-repository' is deprecated and will be removed in a future release.
2024-06-19T01:52:51.775233Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
2024-06-19T01:52:51.775251Z 0 [System] [MY-013169] [Server] /opt/polardbx_engine/bin/mysqld (mysqld 8.0.32-X-Cluster-8.4.19) initializing of server in progress as process 141919
2024-06-19T01:52:51.777254Z 0 [ERROR] [MY-010457] [Server] --initialize specified but the data directory has files in it. Aborting.
2024-06-19T01:52:51.777281Z 0 [ERROR] [MY-013236] [Server] The designated data directory /home/polarx/polardbx-engine/data/ is unusable. You can remove all files that the server added to it.
2024-06-19T01:52:51.778784Z 0 [ERROR] [MY-010119] [Server] Aborting
2024-06-19T01:52:51.783992Z 0 [System] [MY-010910] [Server] /opt/polardbx_engine/bin/mysqld: Shutdown complete (mysqld 8.0.32-X-Cluster-8.4.19) Source distribution.
The text was updated successfully, but these errors were encountered: