MySQL – Stop, Start, ReStart Unrecognized Service Error Solved

MySQL – Stop, Start, ReStart Unrecognized Service Error Solved

mysql: unrecognized service
[root@srv mysql]# service mysql stop
mysql: unrecognized service
[root@srv mysql]# service mysql restart
mysql: unrecognized service
[root@srv mysql]# service mysql restart
mysql: unrecognized service

ÇÖZÜM / SOLVED:

[root@srv mysql]# cd /var/lib/mysql
[root@srv mysql]# adduser mysql
adduser: user mysql exists
[root@srv mysql]# chown mysql:mysql -R /var/lib/mysql
[root@srv mysql]# service mysqld restart
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
[root@srv mysql]#