{"id":946,"date":"2010-06-27T10:11:39","date_gmt":"2010-06-27T14:11:39","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=946"},"modified":"2013-03-20T08:42:47","modified_gmt":"2013-03-20T12:42:47","slug":"cpanel-mysql-database-size-0mb","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/cpanel-mysql-database-size-0mb","title":{"rendered":"cpanel: mysql database size 0MB"},"content":{"rendered":"<p>cPanel sometimes displays the mysql database size as 0MB in the Mysql Databases section of a client and the reason is the database cache file of the user is not updated.<\/p>\n<p>To make sure cPanel displays the correct database size, follow the below steps:<\/p>\n<p><strong>1)<\/strong> SSH to the server and edit the cpanel.config file<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># pico \/var\/cpanel\/cpanel.config<\/span><\/pre>\n<\/blockquote>\n<p>search for<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">disk_usage_include_sqldbs=0<\/span><\/pre>\n<\/blockquote>\n<p>and change to<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">disk_usage_include_sqldbs=1<\/span><\/pre>\n<\/blockquote>\n<p>If the parameter is not present, add it. Save the file and execute the following command:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># \/scripts\/update_db_cache<\/span><\/pre>\n<\/blockquote>\n<p><strong>OR<\/strong><\/p>\n<p><strong>2)<\/strong> Login to the WHM, goto SQL section under Tweak Settings and enable the following option:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">When displaying disk usage in cpanel\/WHM include Postgresql and MySQL.<\/span><\/pre>\n<\/blockquote>\n<p>This will fix the issue.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>cPanel sometimes displays the mysql database size as 0MB in the Mysql Databases section of a client and the reason is the database cache file of the user is not updated.<br \/>\nTo make sure cPanel displays the correct database size, follow the below steps:<br \/>\n1) SSH to the server and edit the cpanel.config file<\/p>\n<p># pico \/var\/cpanel\/cpanel.config<\/p>\n<p>search for<\/p>\n<p>disk_usage_include_sqldbs=0<\/p>\n<p>and change to<\/p>\n<p>disk_usage_include_sqldbs=1<\/p>\n<p>If the parameter is not present, add it. Save the file and execute the following command:<\/p>\n<p># \/scripts\/update_db_cache<\/p>\n<p>OR<br \/>\n2) Login to the WHM, goto SQL section under Tweak Settings and enable the following option:<\/p>\n<p>When [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[903,1347,906,907,905,1346,904],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/946"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=946"}],"version-history":[{"count":7,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/946\/revisions"}],"predecessor-version":[{"id":2198,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/946\/revisions\/2198"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}