<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The cPanel Admin &#187; mysql</title>
	<atom:link href="http://www.thecpaneladmin.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thecpaneladmin.com</link>
	<description>We know stuff about cPanel.</description>
	<lastBuildDate>Mon, 21 Nov 2011 19:50:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Manually Upgrading MySQL</title>
		<link>http://www.thecpaneladmin.com/manually-upgrading-mysql/</link>
		<comments>http://www.thecpaneladmin.com/manually-upgrading-mysql/#comments</comments>
		<pubDate>Wed, 13 Apr 2011 20:22:36 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=804</guid>
		<description><![CDATA[If at all possible, you should use /scripts/mysqlup to do a MySQL upgrade, however, if you need a version of MySQL outside of what they are offering in current cPanel versions, it is possible to upgrade manually. These are the instructions for performing a manual upgrade of MySQL to 5.1.30, but this typically applies to [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/upgrading-downgrading-mysql/' rel='bookmark' title='Upgrading or Downgrading MySQL'>Upgrading or Downgrading MySQL</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-ssl-certificate-mysql/' rel='bookmark' title='Installing an SSL Certificate for MySQL'>Installing an SSL Certificate for MySQL</a></li>
<li><a href='http://www.thecpaneladmin.com/upgrading-openssh-on-centos-5/' rel='bookmark' title='Upgrading OpenSSH on CentOS 5'>Upgrading OpenSSH on CentOS 5</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If at all possible, you should use <a href="http://www.thecpaneladmin.com/upgrading-downgrading-mysql/">/scripts/mysqlup</a> to do a MySQL upgrade, however, if you need a version of MySQL outside of what they are offering in current cPanel versions, it is possible to upgrade manually.<strong><br />
</strong></p>
<p>These are the instructions for performing a manual upgrade of  MySQL to 5.1.30, but this typically applies to all versions over 4.1 and  higher. Typically it is best to upgrade to whatever the latest stable  branch of MySQL is and apply these instructions to install the RPMS.</p>
<p>If this is on a live system, make sure to make backups of the databases.</p>
<p><code><br />
mkdir /root/dbbackups</code></p>
<p><code>touch /root/dbbackups/list<br />
for db in `mysql -e 'show databases' |awk '{print $1}' | grep -v Database`<br />
</code></p>
<p><code> do </code></p>
<p><code>mysqldump --add-drop-table $db &gt; /root/dbbackups/$db.sql &amp;&amp; echo $db &gt;&gt; list<br />
</code><br />
<code> done</code><br />
<code>mkdir /root/sqllibs<br />
cp /usr/lib/libmysqlclient.* /root/sqllibs</code></p>
<p>Do a search for all installed MySQL packages to be removed:<br />
<code>rpm -qa | grep -i mysql-</code></p>
<p>This should present a list of 5 or 6 MySQL RPM&#8217;s that are installed, likely.  Uninstall them one by one with the <strong>rpm -e</strong> like so:<br />
<code>rpm -e MySQL-devel-4.1.21-0.glibc23</code></p>
<p>Some packages are dependencies of each other, so you may need to remove one before being able to remove another.</p>
<p>Download the binaries for the OS version and MySQL version you are using from the cPanel repo:<br />
<a title="http://httpupdate.cpanel.net/mysqlinstall/5.1.30-0" rel="nofollow" href="http://httpupdate.cpanel.net/mysqlinstall/5.1.30-0">http://httpupdate.cpanel.net/mysqlinstall/</a></p>
<p>execute rpm -i for each package (ex: pm -i MySQL-client-5.1.30-0.glibc23.i386.rpm)</p>
<p>Edit <strong>/var/cpanel/cpanel.config</strong> and change the MySQL version to 5.1 (or whatever version you&#8217;re running now).  Then run this command:<br />
<code>touch /etc/mysqlupdisable</code></p>
<p>This will keep cPanel from resetting or reverting back to its original MySQL version during updates.</p>
<p>Restart MySQL first to make sure that it can at least start (which it should).  Once you&#8217;ve verified this, run <strong>mysql -V</strong> to make sure that the correct version is installed.  You should see output similar as below:<br />
<code>root@server [~]# mysql -V<br />
mysql  Ver 14.13 Distrib 5.1.30-beta, for pc-linux-gnu (i686) using readline 5.0<br />
</code></p>
<p>MySQL should now be up and running, but it&#8217;s likely that trying to  log in directly as the root user will fail.  Before Following the below  steps, make sure you can do a &#8216;mysql -u root&#8217; and log in successfully.   If not, you&#8217;ll need to set the root password.  By default, MySQL has a  blank root password which will need to be set to ours&#8230;twice.<br />
Recopy the libs, but <strong>don&#8217;t</strong> overwrite any that already exist:<br />
<code>mv /root/sqllibs/libmysqlclient.* /usr/lib/mysql/</code></p>
<p>Next update cPanel&#8217;s PHP and DBD MySQL bundle for perl by executing the following:<br />
<code>/scripts/perlinstaller --force Bundle::DBD::mysql<br />
/scripts/makecpphp</code></p>
<p>Verify that phpMyAdmin and php -m load properly and without errors.</p>
<p>&nbsp;</p>
<p><map name='google_ad_map_804_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/804?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_804_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=804&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fmanually-upgrading-mysql%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=804&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/upgrading-downgrading-mysql/' rel='bookmark' title='Upgrading or Downgrading MySQL'>Upgrading or Downgrading MySQL</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-ssl-certificate-mysql/' rel='bookmark' title='Installing an SSL Certificate for MySQL'>Installing an SSL Certificate for MySQL</a></li>
<li><a href='http://www.thecpaneladmin.com/upgrading-openssh-on-centos-5/' rel='bookmark' title='Upgrading OpenSSH on CentOS 5'>Upgrading OpenSSH on CentOS 5</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/manually-upgrading-mysql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>User Databases Missing from cPanel</title>
		<link>http://www.thecpaneladmin.com/user-databases-missing-from-cpanel/</link>
		<comments>http://www.thecpaneladmin.com/user-databases-missing-from-cpanel/#comments</comments>
		<pubDate>Sat, 15 Jan 2011 04:42:43 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=714</guid>
		<description><![CDATA[After upgrading to cPanel 11.28, a number of our users indicated that databases were missing from their cPanels, despite the actual databases existing on the server.  There are a number of things that can cause this, including corrupted Perl modules and MySQL not running, but the major cause that I&#8217;ve seen is from the new [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/disk-space-for-mysql-databases-in-cpanel-show-as-0mb/' rel='bookmark' title='Disk Space for MySQL Databases in cPanel Show as 0MB'>Disk Space for MySQL Databases in cPanel Show as 0MB</a></li>
<li><a href='http://www.thecpaneladmin.com/aquota-user-permission-denied/' rel='bookmark' title='aquota.user: Permission denied'>aquota.user: Permission denied</a></li>
<li><a href='http://www.thecpaneladmin.com/php-500-internal-server-errors/' rel='bookmark' title='PHP 500 Internal Server Errors'>PHP 500 Internal Server Errors</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>After upgrading to cPanel 11.28, a number of our users indicated that databases were missing from their cPanels, despite the actual databases existing on the server.  There are a number of things that can cause this, including corrupted Perl modules and MySQL not running, but the major cause that I&#8217;ve seen is from the new database mapping functionality.  As you may know, cPanel has vastly improved their migration capabilities by recently changing how databases are mapped to user accounts, now allowing database names without user prefixes.  However, this seems to cause an issue when databases exist on the server with invalid names.</p>
<p>Check your /var/lib/mysql folder and see if you maybe have folders in there named incorrectly. On one of my servers, the admin renamed several of the databases to $dbname.bak when making changes, and when the database quota script ran it was erroring out. After you move or remove these folders, run the following commands:</p>
<blockquote><p>/scripts/update_db_cache</p>
<p>/usr/local/cpanel/bin/setupdbmap</p></blockquote>
<p>Assuming you&#8217;ve removed all the invalid databases from the MySQL folder, you should now be able to see the ones that were previously missing.</p>
<p><map name='google_ad_map_714_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/714?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_714_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=714&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fuser-databases-missing-from-cpanel%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=714&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/disk-space-for-mysql-databases-in-cpanel-show-as-0mb/' rel='bookmark' title='Disk Space for MySQL Databases in cPanel Show as 0MB'>Disk Space for MySQL Databases in cPanel Show as 0MB</a></li>
<li><a href='http://www.thecpaneladmin.com/aquota-user-permission-denied/' rel='bookmark' title='aquota.user: Permission denied'>aquota.user: Permission denied</a></li>
<li><a href='http://www.thecpaneladmin.com/php-500-internal-server-errors/' rel='bookmark' title='PHP 500 Internal Server Errors'>PHP 500 Internal Server Errors</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/user-databases-missing-from-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New cPanel Database Mapping Feature: Is it for You?</title>
		<link>http://www.thecpaneladmin.com/new-cpanel-database-mapping-feature/</link>
		<comments>http://www.thecpaneladmin.com/new-cpanel-database-mapping-feature/#comments</comments>
		<pubDate>Fri, 28 May 2010 21:25:13 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=497</guid>
		<description><![CDATA[It was announced by cPanel on April 14, 2010 that cPanel 11.25.1 will include a new database mapping feature that&#8217;s been long requested: the removal of cPanel username prefixes from the database names.  This is a non-reversible, opt-in feature that some hosts may find very valuable. But is it a feature that you need? Who [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/user-databases-missing-from-cpanel/' rel='bookmark' title='User Databases Missing from cPanel'>User Databases Missing from cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/adding-new-feature-groups-cpanel-theme/' rel='bookmark' title='Adding New Feature Groups for a cPanel Theme'>Adding New Feature Groups for a cPanel Theme</a></li>
<li><a href='http://www.thecpaneladmin.com/exim-acl-ratelimit-database-not-available/' rel='bookmark' title='Exim ACL Ratelimit Database Not Available'>Exim ACL Ratelimit Database Not Available</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>It was announced by cPanel on April 14, 2010 that cPanel 11.25.1 will include a new database mapping feature that&#8217;s been long requested: the removal of cPanel username prefixes from the database names.  This is a non-reversible, opt-in feature that some hosts may find very valuable. But is it a feature that you need?</p>
<p>Who is this feature for?</p>
<ul>
<li>Hosts migrating entire servers from other control panels like Plesk or Ensim</li>
<li>Single-customer environments</li>
</ul>
<p>Who is this feature <em>not</em> for?</p>
<ul>
<li>Shared hosting providers</li>
<li>Larger-scale hosts</li>
</ul>
<p>The concerns that are initially raised is in regards to shared hosting servers. With the new database mapping feature turned on, if one user takes a database name, no one else on the server can use it. Additionally, you&#8217;re creating a conflict if you move that user from one server to another, where the recipient server already has a user with that database name.  For these reasons alone, I would not advise this option being enabled for the general shared hosting provider, if the end users are going to be allowed to pick database names.</p>
<p>One of the advantages of cPanel is that you can move accounts between cPanel servers, even those from other hosts. If one host has the new mapping feature enabled, and one doesn&#8217;t (or has an older version of cPanel), you&#8217;re likely going to have a problem. For hosts with high conversion rates, this can be a deal breaker if the ease of moving cPanel accounts from other hosts isn&#8217;t there anymore.  This feature also creates a break in the standardization that all cPanel servers inherently have.  Most users by now that have already used cPanel know about the current database naming scheme, so enabling this feature without any technical justification can also create confusion among users that are familiar with and have been using cPanel for a long time.</p>
<p><strong>Update</strong>: A rep from cPanel added this comment:</p>
<p><em>As cPanel 11.25.0 builds 46057 and higher, accounts transferred from a cPanel 11.25.1 system will preserve the YAML mapping file. Any databases and database users that lack the old-style prefix will not be manageable in the 11.25.0 cPanel interface, but the information is at least retained for later use (e.g. if a system with such an account is later upgraded to cPanel 11.25.1+ then the pre-existing YAML file will be updated and the databases and user will be manageable in the cPanel interface).</em></p>
<p>﻿﻿﻿On the other hand, this feature is extremely valuable for hosts converting from other control panels or fulfilling requirements of single-customer environments. Other control panels do not prefix usernames to the database name, so large transfers would be especially painful for a cPanel host that acquires a non-cPanel host. The new mapping feature will help eliminate downtime due to incorrect database connection parameters and the need for mass reconfiguration.</p>
<p>Finally, for hosts that offer VPS and Dedicated hosting to single-customer environments, it&#8217;s nice to finally be able to remove the prefix that annoys web developers and IT people in charge of moving their customer sites.</p>
<p>So while this new feature is exciting, it&#8217;s opt-in for a reason &#8211; and that doesn&#8217;t mean it&#8217;s right for your hosting setup.</p>
<p><strong>Additional Information:</strong></p>
<p><a href="http://www.cpanel.net/blog/integration/2010/04/a-general-overview-of-database-mapping.html" target="_blank">http://www.cpanel.net/blog/integration/2010/04/a-general-overview-of-database-mapping.html</a><br />
<a href="http://www.cpanel.net/2010/05/backwards-incompatible.html" target="_blank">http://www.cpanel.net/2010/05/backwards-incompatible.html</a><br />
<a href="http://www.cpanel.net/blog/integration/2010/05/more-details-about-db-mapping.html" target="_blank">http://www.cpanel.net/blog/integration/2010/05/more-details-about-db-mapping.html</a></p>
<p><map name='google_ad_map_497_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/497?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_497_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=497&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fnew-cpanel-database-mapping-feature%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=497&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/user-databases-missing-from-cpanel/' rel='bookmark' title='User Databases Missing from cPanel'>User Databases Missing from cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/adding-new-feature-groups-cpanel-theme/' rel='bookmark' title='Adding New Feature Groups for a cPanel Theme'>Adding New Feature Groups for a cPanel Theme</a></li>
<li><a href='http://www.thecpaneladmin.com/exim-acl-ratelimit-database-not-available/' rel='bookmark' title='Exim ACL Ratelimit Database Not Available'>Exim ACL Ratelimit Database Not Available</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/new-cpanel-database-mapping-feature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disk Space for MySQL Databases in cPanel Show as 0MB</title>
		<link>http://www.thecpaneladmin.com/disk-space-for-mysql-databases-in-cpanel-show-as-0mb/</link>
		<comments>http://www.thecpaneladmin.com/disk-space-for-mysql-databases-in-cpanel-show-as-0mb/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 19:45:28 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=324</guid>
		<description><![CDATA[When you upgrade from cPanel 11.24 to 11.25, your users may notice that in cPanel, their MySQL databases show 0MB of disk space used, when they know their databases are much larger. This is due to an option in cPanel that you specifically have to enable. To enable MySQL disk usage tracking: 1) Edit /var/cpanel/cpanel.config [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/user-databases-missing-from-cpanel/' rel='bookmark' title='User Databases Missing from cPanel'>User Databases Missing from cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/removing-whm-disk-space-errors/' rel='bookmark' title='Removing WHM Disk Space Errors'>Removing WHM Disk Space Errors</a></li>
<li><a href='http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/' rel='bookmark' title='11 Ways to Free Up Disk Space on a cPanel Server'>11 Ways to Free Up Disk Space on a cPanel Server</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>When you upgrade from cPanel 11.24 to 11.25, your users may notice that in cPanel, their MySQL databases show 0MB of disk space used, when they know their databases are much larger. This is due to an option in cPanel that you specifically have to enable. To enable MySQL disk usage tracking:</p>
<p>1) Edit <strong>/var/cpanel/cpanel.config</strong></p>
<p><strong>Change:</strong></p>
<p><strong>disk_usage_include_sqldbs=0</strong></p>
<p>to<strong> </strong></p>
<p><strong>disk_usage_include_sqldbs=1</strong></p>
<p>Then run the following:</p>
<p><strong>/scripts/update_db_cache</strong><br />
This may take a few minutes if you have a ton of users with databases, but after this, you should see the database disk usage show up accurately in cPanel.<strong><br />
</strong></p>
<p><map name='google_ad_map_324_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/324?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_324_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=324&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fdisk-space-for-mysql-databases-in-cpanel-show-as-0mb%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=324&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/user-databases-missing-from-cpanel/' rel='bookmark' title='User Databases Missing from cPanel'>User Databases Missing from cPanel</a></li>
<li><a href='http://www.thecpaneladmin.com/removing-whm-disk-space-errors/' rel='bookmark' title='Removing WHM Disk Space Errors'>Removing WHM Disk Space Errors</a></li>
<li><a href='http://www.thecpaneladmin.com/11-ways-to-free-up-disk-space-on-a-cpanel-server/' rel='bookmark' title='11 Ways to Free Up Disk Space on a cPanel Server'>11 Ways to Free Up Disk Space on a cPanel Server</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/disk-space-for-mysql-databases-in-cpanel-show-as-0mb/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Re-Installing Auxiliary cPanel Software</title>
		<link>http://www.thecpaneladmin.com/re-installing-auxiliary-cpanel-software/</link>
		<comments>http://www.thecpaneladmin.com/re-installing-auxiliary-cpanel-software/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 15:52:56 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[webmail]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=278</guid>
		<description><![CDATA[Cpanel has a lot of supporting software that you may be using on your server. In case something goes amiss, here is a list of scripts that reinstall cpanel-provided software on your system. For most all of these, you can pass a &#8211;force as an argument to force a reinstall of the application. cPanel /scripts/upcp [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/reinstalling-webmail-cpanel/' rel='bookmark' title='Reinstalling Webmail'>Reinstalling Webmail</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-and-configuring-dovecot/' rel='bookmark' title='Installing and Configuring Dovecot'>Installing and Configuring Dovecot</a></li>
<li><a href='http://www.thecpaneladmin.com/cpanel-updates-redhat-9-break-stuff/' rel='bookmark' title='cPanel Updates on Redhat 9 Can Break Stuff'>cPanel Updates on Redhat 9 Can Break Stuff</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Cpanel has a lot of supporting software that you may be using on your server. In case something goes amiss, here is a list of scripts that reinstall cpanel-provided software on your system. For most all of these, you can pass a <strong>&#8211;force </strong>as an argument to force a reinstall of the application.</p>
<p><strong>cPanel</strong><br />
/scripts/upcp</p>
<p><strong>MySQL</strong><br />
/scripts/mysqlup</p>
<p><strong>PostgreSQL</strong><br />
/scripts/installpostgres</p>
<p><strong>Roundcube</strong><br />
/usr/local/cpanel/bin/update-roundcube</p>
<p><strong>Horde</strong><br />
/usr/local/cpanel/bin/update-horde</p>
<p><strong>Squirrelmail</strong><br />
/usr/local/cpanel/bin/update-squirrelmail</p>
<p><strong>phpMyAdmin</strong><br />
/usr/local/cpanel/bin/updatephpmyadmin</p>
<p><strong>pureFTP</strong><br />
/scripts/ftpup &#8211;force (See: Installing and Configuring pure-FTP)</p>
<p><strong>Exim</strong><br />
/scripts/eximup</p>
<p><strong>Courier IMAP</strong><br />
/scripts/courierup &#8211;force (See: Installing/Configuring Courier IMAP)</p>
<p><strong>Dovecot</strong><br />
/scripts/dovecotup &#8211;force (See: Installing and Configuring Dovecot)</p>
<p><strong>cpAddons</strong><br />
/scripts/cpaddonsup</p>
<p><strong>NSD/BIND</strong><br />
/scripts/setupnameserver (NSD:/scripts/nsdup)</p>
<p><strong>Apache/PHP</strong><br />
/scripts/easyapache (See: EasyApache)</p>
<p><strong>suPHP</strong><br />
/scripts/suphpup</p>
<p><strong>cPanel Internal PHP</strong><br />
/scripts/makecpphp</p>
<p><strong>FrontPage Extensions</strong><br />
/scripts/fpupgrade</p>
<p><strong>Mailman</strong><br />
/scripts/reinstallmailman (will not remove list data)</p>
<p><strong>cpHulkd</strong><br />
/usr/local/cpanel/bin/hulkdsetup</p>
<p><strong>Ruby</strong><br />
/scripts/installruby</p>
<p><map name='google_ad_map_278_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/278?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_278_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=278&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fre-installing-auxiliary-cpanel-software%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=278&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/reinstalling-webmail-cpanel/' rel='bookmark' title='Reinstalling Webmail'>Reinstalling Webmail</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-and-configuring-dovecot/' rel='bookmark' title='Installing and Configuring Dovecot'>Installing and Configuring Dovecot</a></li>
<li><a href='http://www.thecpaneladmin.com/cpanel-updates-redhat-9-break-stuff/' rel='bookmark' title='cPanel Updates on Redhat 9 Can Break Stuff'>cPanel Updates on Redhat 9 Can Break Stuff</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/re-installing-auxiliary-cpanel-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading or Downgrading MySQL</title>
		<link>http://www.thecpaneladmin.com/upgrading-downgrading-mysql/</link>
		<comments>http://www.thecpaneladmin.com/upgrading-downgrading-mysql/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 01:00:02 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://thecpaneladmin.com/?p=20</guid>
		<description><![CDATA[Click here for instructions on manual upgrades &#160; You can easily change the major version of MySQL running on your server, keeping in mind that the actual version will be dependent on what cPanel has released in their repository. You may notice that in WHM &#62; Tweak Settings, where MySQL upgrades and downgrades are usually [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/manually-upgrading-mysql/' rel='bookmark' title='Manually Upgrading MySQL'>Manually Upgrading MySQL</a></li>
<li><a href='http://www.thecpaneladmin.com/disk-space-for-mysql-databases-in-cpanel-show-as-0mb/' rel='bookmark' title='Disk Space for MySQL Databases in cPanel Show as 0MB'>Disk Space for MySQL Databases in cPanel Show as 0MB</a></li>
<li><a href='http://www.thecpaneladmin.com/user-databases-missing-from-cpanel/' rel='bookmark' title='User Databases Missing from cPanel'>User Databases Missing from cPanel</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.thecpaneladmin.com/manually-upgrading-mysql/">Click here for instructions on manual upgrades</a></p>
<p>&nbsp;</p>
<p>You can easily change the major version of MySQL running on your server, keeping in mind that the actual version will be dependent on what cPanel has released in their repository. You may notice that in WHM  &gt; Tweak Settings, where MySQL upgrades and downgrades are usually done, you can no longer downgrade to versions under 5.0, nor (at the time of this writing) can you choose MySQL 5.1.  Luckily cPanel gives you a way to get around this.</p>
<p><span id="more-20"></span></p>
<p>To change the MySQL version, edit the file <strong>/var/cpanel/cpanel.config</strong> and look for this line</p>
<blockquote><p>mysql-version</p></blockquote>
<p>Then change the version number to the major version that you want to upgrade to. For instance, <strong>4.0, 4.1, 5.0, or 5.1</strong>.</p>
<p>Then save the file. To perform the upgrade, you can run either of the following scripts:</p>
<blockquote><p>/usr/local/cpanel/whostmgr/bin/whostmgr2 &#8211;updatetweaksettings</p></blockquote>
<blockquote><p>/scripts/mysqlup</p></blockquote>
<p>Then confirm the new version with the <strong>mysql -V</strong> command. In most cases, if you upgrade/downgrade between major versions you&#8217;ll &#8216;break&#8217; PHP if PHP is compiled with MySQL support. You may then have to re-run EasyApache to recompile PHP, which will automatically compile with the new libraries. You&#8217;ll know if this is necessary when you run the <strong>php -m</strong> command and get an error like this:</p>
<p><code>php: /usr/lib64/libmysqlclient.so.15: version `libmysqlclient_15' not found (required by php)</code></p>
<p>Word to the wise (and the lazy system admin that likes to gun through updates), you should ALWAYS dump all your databases prior to upgrading/downgrading between major versions of MySQL.  Here&#8217;s a command I use to dump all the databases on the server into a backup folder:</p>
<blockquote><p>mkdir /root/dbbackups ; touch /root/dbbackups/list<br />
for db in `mysql -e &#8216;show databases&#8217; |awk &#8216;{print $1}&#8217;` ; do mysqldump &#8211;add-drop-table $db &gt; /root/dbbackups/$db.sql &amp;&amp; echo $db &gt;&gt; list ; done</p></blockquote>
<p>Then to re-import after the upgrade/downgrade:</p>
<blockquote><p>for db in `cat /root/dbbackups/list` ; do mysqldump $db &lt; /root/dbbackups/$db.sql ; done</p></blockquote>
<p>Notes:</p>
<ul>
<li>If the MySQL upgrade fails, you can try a forced reinstall by doing <strong>/scripts/mysqlup &#8211;force</strong></li>
<li>In my experience, downgrades to MySQL 4.0 from other versions isn&#8217;t always so smooth, and I&#8217;ve had to actually move out the entire /var/lib/mysql folder and do a complete reinstall of MySQL. This obviously will remove all the databases, but you may be able to manually move them back into the mysql folder and reimport from your backups</li>
<li>MySQL 4.0 is not automatically compatible with PHP 5+</li>
</ul>
<p><map name='google_ad_map_20_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/20?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_20_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=20&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fupgrading-downgrading-mysql%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=20&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/manually-upgrading-mysql/' rel='bookmark' title='Manually Upgrading MySQL'>Manually Upgrading MySQL</a></li>
<li><a href='http://www.thecpaneladmin.com/disk-space-for-mysql-databases-in-cpanel-show-as-0mb/' rel='bookmark' title='Disk Space for MySQL Databases in cPanel Show as 0MB'>Disk Space for MySQL Databases in cPanel Show as 0MB</a></li>
<li><a href='http://www.thecpaneladmin.com/user-databases-missing-from-cpanel/' rel='bookmark' title='User Databases Missing from cPanel'>User Databases Missing from cPanel</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/upgrading-downgrading-mysql/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

