Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
825 views
by

Hi 

I want usu monit server monitor my service mysql but i can't find mysqld.pid

I sure mysql service is running...

I tried these instructions --> find / -type f -name "mysqld.pid" or find / -type f -name "mysqld*.pid"

but can't find anything...

How can i do?   

1 Answer

0 votes
by Expert

This file is located exactly where all the other PID files are.

/run/mysqld/mysqld.pid

by

Hi 

I check located but not find the file

--> /run/mysqld/mysqld.pid

by Expert
Are you sure Webinoly and MySQL (MariaDB) are both installed?
by
Hi

Yes i sure,

My wordpress website is already working two month old

It creat for webinoly,if i didn’t installed mysql isn’t work right?
by Expert

That's weird!

I don't really know what is happening but you can always create it manually.

In your mysql configuration file - my.cnf, check for the parameter pid-file and see where it points. If it is not there, set it manually to -

pid-file    = /var/run/mysqld/mysqld.pid

Create the directory /var/run/mysqld/ and give it proper permissions -

sudo mkdir /var/run/mysqld
sudo touch /var/run/mysqld/mysqld.pid
sudo chown -R mysql:mysql /var/run/mysqld
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...