ERROR: ERROR! MySQL is not running, but lock file(/var/lock/subsys/mysql) exists

Solution reference:

1: the my.cnf configuration file is not properly written. For example, there is no top lattice or [mysqld] and [mysql] are not written correctly

2: The database installation directory and database data directory are not authorized and need to be authorized again

3: use the process of killing way/root @ bogon ~ # ps – A | grep mysql

Just kill whatever port number you have, right

[root@bogon ~]# kill -9 Port number