VDS Sphera Knowledge Base

Main / Browse Categories / MySQL / My Disk Quota is unusually high. What can I do?

Print article Print Article    Email article Email Article

My Disk Quota is unusually high. What can I do?
NOTE: This article pertains to accounts created before July 7th, 2003.

Unfortunately, the Sphera VDS software counts your log files as diskspace and therefore, it goes against your quota. However, there is a fix. By default, every MySQL action is logged in a file. This file is located here:

/usr/local/mysql/var/[YOURDOMAIN].log
To resolve this problem, login to your VDS via SSH and change directories by running this command:
cd /usr/local/mysql/var/
Then run the command:
ls -l
You will see a file named [YOURDOMAIN].log, replacing [YOURDOMAIN] with your domain name minus the tld. Your can then run the command:
rm [YOURDOMAIN].log
The file should now be removed. You can now run the command:
touch [YOURDOMAIN].log
This will re-create the log file. After this is accomplished, run the command:
vi /etc/my.cnf
About half way down you will see a line that just has "log". Comment out this line so that it look like this:
#log
Save the my.cnf file. Now login to your VDS control panel and restart your VDS. Your Disk Quota should be much less.

User Comments
My Disk Quota is unusually high. What can I do?  
There are no user comments for this topic.
 

Attachments
No attachments.

Related Articles
 How can I connect to MySQL using SSH?
 How can I dump a MySQL database from the command line?
 Where is MySQL located?
 Where is the MySQL log file?
 Where is the MySQL my.cnf file?

Why Choose Our Hosting?

  • Unmatched Customer Support!
  • Virtual Private Server technology provides a rich, dedicated-like environment for every account.
  • We are known for our superb quality, performance and flexible hosting environment. We manage the server, software, and network you do the rest.
Continue reading »

Featured Hosting Plan


Learn more about our VPS Extreme

What is Included?

  • PHP 5/MySQL 5
  • Parallels® Plesk Panel 10
  • Unique IP Address
  • Daily VPS Backups (Off Server)
  • SAS Hardware Raid diskspace
  • CentOS 5 x86_64 bit
  • Multi-homed Tier 1 Bandwidth
  • Full Upgrade capabilities
Continue reading »