Start the service on Linux and report an error
[ root@iZ25n5kdt0kZ ~]# service mysqld stop
Redirecting to /bin/systemctl stop mysqld.service
Solution:
First, use the CD command to switch the directory, for example: CD bin, and operate MySQL under the corresponding directory according to the specific error prompt
1. Use the following command to operate MySQL:
systemctl restart mysqld.service
systemctl start mysqld.service
systemctl stop mysqld.service
2. If the above operation doesn’t work, try the second scheme. The owner of MySQL is root, and MySQL is executed as a MySQL user. Of course, it can’t be written in. It’s a matter of system permissions. Chown – R mysql:mysql /var/lib/mysql/ That’s it
Link to the original text: https://blog.csdn.net/Qyq0498/article/details/107579247
Read More:
- Redirecting to /bin/systemctl stop firewalled.service Failed to stop firewalled.service: Unit firewa
- Centos7 executes the command service mysqld start and prompts Failed to start mysqld.service: Unit mysqld.service not loaded
- CentOS 8.1 solution to error in executing #systemctl restart network.service
- Systemctl command doesn’t exist. How to solve the problem that the service can’t be started
- Job for docker.service failed because the control process exited with error code. See systemctl sta
- systemctl start docker Job for docker.service failed because the control process exited with error
- Fatal error: Please read “Security” section of the manual to find out how to run mysqld as root!
- nt service 1072 No need to restart, repeat the method of installing the service program or service driver
- MongoDB Error: Failed to start mongod.service: Unit mongod.service is not loaded properly
- MongoDB Error: Failed to start mongod.service: Unit mongodb.service is masked
- MySQL error set: failed to start mysql.service : Unit mysql.service is masked.
- MacOS: How to start or stop Docker
- Error report of xv6 operating system make Makefile:192 : * * solutions to receive comments before first target. Stop
- How to Fix Failed to start service jboss.deployment.unit.”jboss-as-bmt.war”.INSTALL: org.jboss.msc.service.S
- Convergence warning: lbfgs failed to converge (status=1): Stop: total no. of iterations reached L
- Install / Remove of the Service denied! Error occurred when installing MySQL service
- Stop: job failed while stopping
- Vs compile VTK, only generate install error, stop, ask God how to solve?
- Removing stop words —— Python Data Science CookBook
- Error analysis of receive comments before first target. Stop