Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: kohshan on December 28, 2021, 06:00:13 AM

Title: DISK FULL: Can't start MySQL!
Post by: kohshan on December 28, 2021, 06:00:13 AM
How can i delete cache or log to get free space?

Quote
Warning: mysqli_connect(): (HY000/2002): Connection refused in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

Warning: mysqli_connect(): (HY000/2002): Connection refused in /usr/local/cwpsrv/htdocs/resources/admin/include/functions.php on line 0

Warning: mysqli_connect(): (HY000/2002): Connection refused in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0

Warning: mysqli_connect(): (HY000/2002): Connection refused in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0


DISK FULL: Can't start MySQL!


Warning: mysqli_error() expects exactly 1 parameter, 0 given in /usr/local/cwpsrv/htdocs/admin/admin/index.php on line 0
Could not connect:
Title: Re: DISK FULL: Can't start MySQL!
Post by: studio4host on December 28, 2021, 01:47:25 PM
clean the disk as you can't run MySQL with full disk

Useful script for checking logs:
Code: [Select]
sh /scripts/disk_check
Title: Re: DISK FULL: Can't start MySQL!
Post by: Netino on December 28, 2021, 11:04:05 PM
You can install 'ncdu' program, (from EPEL repository) it is very simple to use:
Code: [Select]
# yum install ncdu

It builds a resumed list for disk space occupied from current directory.
It is very fast.

(To install first EPEL repository, check: https://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/ (https://www.cyberciti.biz/faq/installing-rhel-epel-repo-on-centos-redhat-7-x/))

Regards,
Netino