关于在linux上安装mysql的问题

1、首先在root用户条件下,进行安装mysql,一些运行正常

2、但我在查看状态的时候,却出错了,显示

   [root@spark01 ~]# service mysql start

  Starting MySQL SUCCESS!

 [root@spark01 ~]# service mysql status

 ERROR! Multiple MySQL running but PID file could not be found (4751 4598)

3、这有可能是进程的问题

  我们通过ss -tnl命令,发现服务仍然存在,服务假死,强行将服务停用,参照一下步骤,问题解决!!1

[root@spark01 ~]#service mysql restart
       ERROR! MySQL server PID file could not be found!
       Starting MySQL...........^Z
   [3]+  Stopped                 service mysql restart
[root@spark01 ~]# ss -tnl
State      Recv-Q Send-Q                                       Local Address:Port                                         Peer Address:Port 
LISTEN     0      128                                                      *:50020                                                   *:*     
LISTEN     0      128                                        192.168.242.166:9000                                                    *:*     
LISTEN     0      80                                                      :::3306                                                   :::*     
LISTEN     0      128                                                      *:50090                                                   *:*     
LISTEN     0      128                                                      *:50070                                                   *:*     
LISTEN     0      128                                                     :::22                                                     :::*     
LISTEN     0      128                                                      *:22                                                      *:*     
LISTEN     0      128                                              127.0.0.1:631                                                     *:*     
LISTEN     0      128                                                    ::1:631                                                    :::*     
LISTEN     0      128                                                      *:50010                                                   *:*     
LISTEN     0      128                                                      *:50075                                                   *:*     
[root@spark01 ~]# killall mysqld
[root@spark01 ~]# service mysql start  
Starting MySQL SUCCESS! 
[root@spark01 ~]# service mysql status
 SUCCESS! MySQL running (5094)

猜你喜欢

转载自blog.csdn.net/qq_15508167/article/details/79253498