Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法启动 #39

Open
xie99 opened this issue Jun 19, 2024 · 1 comment
Open

无法启动 #39

xie99 opened this issue Jun 19, 2024 · 1 comment

Comments

@xie99
Copy link

xie99 commented Jun 19, 2024

执行了/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.

@sWildGold
Copy link
Contributor

“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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants