<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - How to Upgrade MySQL to 4.0.x for SME Server</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>How to Upgrade MySQL to 4.0.x for SME Server</h1>
</div>
<div id="content">



<div class="wikitext"><span class="plugin" id="CommentPlugin154"></span><p class="tightenable top bottom"><a href="Documentation.html" class="wiki">Documentation</a> &gt; <a href="How-to%20Classification.html" class="wiki">How-to Classification</a> &gt; <a href="MySQL.html" class="wiki">MySQL</a> &gt; <b>How to Upgrade MySQL to 4.0.x for SME Server</b> <br /></p>
<hr />
<h3>About this HowTo</h3>
<p class="tightenable top bottom"><b>Authors:</b> <a href="mailto:jmbaka@yahoo.com" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/mailto.png" alt="" class="linkicon" border="0" />john</span></a>, <a href="mailto: laurent.dinclaux@gmail.com" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/mailto.png" alt="" class="linkicon" border="0" />Laurent</span> Dinclaux</a><br />
<b>Source:</b> <a href="http://mirror.contribs.org/smeserver/contribs/star/mitel/contrib/howto-mysql4.txt" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://mirror.contribs.org/smeserver/contribs/star/mitel/contrib/howto-mysql4.txt</span></a> <br />
<b>See Also:</b> <a href="http://forums.contribs.org/viewtopic.php?t=18597" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://forums.contribs.org/viewtopic.php?t=18597</span></a> <br />
<b>See Also:</b> <a href="http://forums.contribs.org/viewtopic.php?t=7965" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://forums.contribs.org/viewtopic.php?t=7965</span></a> <br />
<b>See Also:</b> <a href="http://dev.mysql.com/doc/mysql/en/Upgrading-from-3.23.html" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://dev.mysql.com/doc/mysql/en/Upgrading-from-3.23.html</span></a>  <br />
<b>Tested on:</b> SME Version 6.01 GPL, SME 6.0, SME 5.6 Unsupported developper release <br />
<b>Created:</b> 24 Mar 2004 <br />
<b>License:</b> GPL <br />
<b>Summary:</b> This HowTo enable you to upgrade MySql to 4.0 <br />
<b>Keywords:</b> My SQL, MySQL, MySQL4, MySQL 4, MySQL4.0, MySQL 4.0 <br />
<b>Certification:</b> Contribs.org <a href="Certification%20Process.html" class="named-wiki" title="Certification Process">in progess</a> <a href="http://forums.contribs.org/viewtopic.php?t=21464" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />here</span></a> <br /></p>
<hr />
<h3>1) DOWNLOAD MySQL 4.0</h3>
<p class="tightenable top">Download MySQL 4.0 rpms from <a href="http://www.mysql.com/downloads/mysql-4.0.html" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />mysql.com</span></a> in a fresh directory (<i>Linux x86 RPM downloads</i> section).</p>
<p class="tightenable bottom">You need:</p>
<ul><li class="tightenable top bottom">MySQL-shared-compat-4.0.x-0.i386.rpm</li>
<li class="tightenable top bottom">MySQL-server-4.0.x-0.i386.rpm</li>
<li class="tightenable top bottom">MySQL-client-4.0.x-0.i386.rpm</li>
<li class="tightenable top bottom">MySQL-devel-4.0.x-0.i386.rpm<br /></li>
</ul>
<p class="tightenable top"><b>Note:</b> replace 4.0.x with current MySql version availaible (was 4.0.18 at time of writing)
<br /></p>
<h3>2) STOP MYSQL</h3>
<blockquote class="mail-style-quote tightenable top bottom"><p class="tightenable top bottom"><code> service mysqld stop</code></p>
</blockquote>
<p class="tightenable top"><br /></p>
<h3>3) REMOVE OLD RPMS</h3>
<blockquote class="mail-style-quote tightenable bottom"><p class="tightenable top bottom"><code> rpm -e --nodeps mysql mysql-client mysql-server</code><br />
<code> rpm -e mysql-devel</code><br />
<code> rpm -e mysqlclient9</code></p>
</blockquote>
<p class="tightenable top"><br /></p>
<h3>4) INSTALL NEW RPMS</h3>
<h4>Cd to the directory where you downloaded the rpms and do:</h4>
<blockquote class="mail-style-quote tightenable bottom"><p class="tightenable top bottom"><code> rpm -Uvh MySQL-*.rpm</code></p>
</blockquote>
<h4>OR</h4>
<blockquote class="mail-style-quote tightenable bottom"><p class="tightenable top bottom"><code> rpm -Uhv MySQL-shared-compat-4.0.x-0.i386.rpm</code><br />
<code> rpm -Uhv MySQL-server-4.0.x-0.i386.rpm</code><br />
<code> rpm -Uhv MySQL-client-4.0.x-0.i386.rpm</code><br />
<code> rpm -Uvh MySQL-devel-4.0.x-0.i386.rpm </code></p>
</blockquote>
<p class="tightenable top"><br />
<b>Note:</b> replace 4.0.x with current MySql version availaible (was 4.0.18 at time of writing)
<br /> <br /></p>
<h3>5) CONFIGURE</h3>
<blockquote class="mail-style-quote tightenable bottom"><p class="tightenable top"><code> ln -s /etc/rc.d/init.d/mysql /etc/rc.d/init.d/mysqld </code><br /></p>
<p class="tightenable"><code> chkconfig --levels 2345 mysqld on </code><br />
<code> chkconfig --levels 016 mysqld off </code><br /></p>
<p class="tightenable"><code> /sbin/e-smith/config setprop mysqld LocalNetworkingOnly no (to enable remote access)</code><br />
<code> /sbin/e-smith/expand-template /root/.my.cnf</code><br /></p>
<p class="tightenable"><code> ln -s /usr/sbin/mysqld /usr/libexec/ (for conf-mysql-password script)</code><br /></p>
<p class="tightenable bottom"><code> service mysqld restart</code></p>
</blockquote>
<p class="tightenable top"><br /></p>
<p class="tightenable bottom">Then to make sure that your grant tables are current when you update to the new version:</p>
<blockquote class="mail-style-quote tightenable top bottom"><p class="tightenable top bottom"><code> /usr/bin/mysql_fix_privilege_tables</code></p>
</blockquote>
<p class="tightenable top"><br />
More infos there: <a href="http://dev.mysql.com/doc/mysql/en/Upgrading-grant-tables.html" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://dev.mysql.com/doc/mysql/en/Upgrading-grant-tables.html</span></a></p>
<h3>6) OPTIONAL: INNODB SUPPORT</h3>
<h4>Create a custom-template fragment:</h4>
<blockquote class="mail-style-quote tightenable top"><p class="tightenable top bottom"><code> mkdir -p /etc/e-smith/templates-custom/etc/my.cnf</code><br />
<code> cp /etc/e-smith/templates/etc/my.cnf/009innodb /etc/e-smith/templates-custom/etc/my.cnf</code><br />
<code> pico /etc/e-smith/templates-custom/etc/my.cnf/009innodb</code><br /></p>
</blockquote>
<h4>And comment the only line it contains so the file should look like this:</h4>
<pre class="tightenable top bottom">
#skip-innodb</pre>
<h4>Save the file then do:</h4>
<blockquote class="mail-style-quote tightenable top bottom"><p class="tightenable top bottom"><code> /sbin/e-smith/expand-template /etc/my.cnf</code><br />
<code> service mysqld restart </code></p>
</blockquote>
<p class="tightenable top"><br /> <br /></p>
<hr />
<p class="tightenable top bottom"><a href="Documentation.html" class="wiki">Documentation</a> &gt; <a href="How-to%20Classification.html" class="wiki">How-to Classification</a> &gt; <a href="MySQL.html" class="wiki">MySQL</a> &gt; <b>How to Upgrade MySQL to 4.0.x for SME Server</b> <br /> <br />
<a href="How%20to%20Upgrade%20MySQL%20to%204.0.x%20for%20SME%20Server%20feedback.html" class="named-wiki" title="How to Upgrade MySQL to 4.0.x for SME Server feedback">Add your comments about this How To</a></p>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;haj&quot;  Last edited on May 20, 2005 12:16 am by &quot;haj&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
