Показы состояния mysqld остановлены, но на самом деле он работает - PullRequest
0 голосов
/ 02 мая 2018

Я использую 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>

Я не понимаю, как это может произойти?

1 Ответ

0 голосов
/ 08 мая 2018

Я решил это. Я выучил pid mysqld с помощью:

top

затем убил его

kill 24678

Я запустил mysqld:

service start mysqld

Проблема была:

service mysqld stop

не может остановить mysqld.

...