【问题标题】:mysqld status shows stopped but it actually runsmysqld 状态显示已停止但它实际上运行
【发布时间】:2018-10-12 14:05:27
【问题描述】:

我使用 CentOS6 Hortonworks Sandbox。 当我跑步时:

[root@sandbox-hdp ~]# service mysqld stop

它停止了,我检查了:

[root@sandbox-hdp ~]# service mysqld status
mysqld is stopped

到目前为止一切都很好。但是当我试图从这个开始时:

[root@sandbox-hdp ~]# service mysqld start
Starting mysqld:                                           [  OK  ]

我又检查了一遍:

[root@sandbox-hdp ~]# service mysqld status
mysqld is stopped

但是现在发生了奇怪的事情:

[root@sandbox-hdp ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5486
Server version: 5.6.39 MySQL Community Server (GPL)

Copyright (c) 2000, 2018, 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.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

我不明白这怎么会发生?

【问题讨论】:

    标签: mysql centos6


    【解决方案1】:

    ​我解决了。我通过以下方式学习了 mysqld pid:

    top
    

    ​然后杀死它

    kill 24678
    

    ​我启动了mysqld:

    service start mysqld
    

    问题是:

    service mysqld stop
    

    ​无法停止 mysqld。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-01
      • 2014-11-04
      • 2011-07-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多