<?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>am3n portfolio &#187; mysql 4</title>
	<atom:link href="http://www.am3n.net/tag/mysql-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.am3n.net</link>
	<description>career, freelance and some stupid thing I do</description>
	<lastBuildDate>Mon, 09 May 2011 16:27:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Running MySQL 4 and MySQL 5 Concurrently</title>
		<link>http://www.am3n.net/2008/06/20/running-mysql-4-and-mysql-5-concurrently/</link>
		<comments>http://www.am3n.net/2008/06/20/running-mysql-4-and-mysql-5-concurrently/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 08:20:41 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[concurrently]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql 4]]></category>
		<category><![CDATA[mysql 5]]></category>
		<category><![CDATA[running]]></category>
		<category><![CDATA[two]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=25</guid>
		<description><![CDATA[From Howtoforge.com&#8217;s article: Running MySQL 4 And MySQL 5 Concurrently But I did in another way, because current release of CentOS / RHEL 5 already include MySQL 5 and I install MySQL 4 manually. I need a server with 2 MySQL version for development purpose: as current development is using MySQL 4 so I&#8217;ll configure [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2008/05/03/running-mysqld-as-standalone-application-on-windows/' rel='bookmark' title='Running MySQLd as standalone application on Windows'>Running MySQLd as standalone application on Windows</a> <small>My friend asked me how to get MySQL running as...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>From Howtoforge.com&#8217;s article: <a href="http://www.howtoforge.com/running-mysql4-and-mysql5-concurrently" target="_blank">Running MySQL 4 And MySQL 5 Concurrently</a></p>
<p>But I did in another way, because current release of CentOS / RHEL 5 already include MySQL 5 and I install MySQL 4 manually. I need a server with 2 MySQL version for development purpose: as current development is using MySQL 4 so I&#8217;ll configure it to use default port 3306 and for MySQL 5 will use port 3307.</p>
<p>First install CentOS with MySQL 5, afterthat configure MySQL 5 to use port 3307</p>
<pre># cp /usr/share/doc/mysql-server-5.0.22/my-medium.cnf /etc/my.cnf
# vi /etc/my.cnf
...
[client]
#password       = your_password
port            = 3307
socket          = /var/lib/mysql/mysql.sock

# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port            = 3307
socket          = /var/lib/mysql/mysql.sock
...
# chkconfig mysqld on
# service mysqld start</pre>
<p>To add new mysql user you can read &#8220;<a href="http://am3n.profusehost.net/post/index/3/adding-mysql-user" target="_blank">Adding mysql users</a>&#8220;, to change mysql&#8217;s root password use:</p>
<pre># /usr/bin/mysqladmin -u root password 'newpassword'</pre>
<p>Now we are going to install MySQL 4</p>
<p><span id="more-25"></span></p>
<p>Download MySQL 4 source tarball (I am downloading from <a href="http://www.mirrorservice.org/sites/ftp.mysql.com/Downloads/MySQL-4.0/mysql-4.0.27.tar.gz" target="_blank">MirrorService</a>)</p>
<pre># tar xzvf mysql-4.0.27.tar.gz
# cd mysql-4.0.27
# yum -y install libtermcap-devel gcc-c++ gcc
# echo '/* Linuxthreads */' &gt;&gt; /usr/include/pthread.h
# ./configure --prefix=/var/lib/mysql4 --with-unix-socket-path=/var/lib/mysql4/mysql4.sock --with-tcp-port=3306
# make
# make install
# cp /var/lib/mysql4/share/mysql/my-medium.cnf /etc/my4.cnf
# ./scripts/mysql_install_db --defaults-file=/etc/my4.cnf --user=mysql
# chown -R mysql.mysql /var/lib/mysql4
# echo "/var/lib/mysql4/bin/mysqld_safe --defaults-file=/etc/my4.cnf --user=mysql &#038;" >> /etc/rc.local
</pre>
<p>To connect MySQL 4.0, go to folder /var/lib/mysql4/bin</p>
<pre>
# cd /var/lib/mysql4/bin
# ./mysqladmin -u root password 'newpassword'
# ./mysql --socket=/var/lib/mysql4/mysql4.sock
</pre>
<p>To connect MySQL 5.0, go to folder /var/lib/mysql4/bin</p>
<pre>
# mysql  --port=3307
</pre>
<p>After you specify root password you may need to connect using option -u and -p</p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2008%2F06%2F20%2Frunning-mysql-4-and-mysql-5-concurrently%2F', 'Running+MySQL+4+and+MySQL+5+Concurrently')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2008%2F06%2F20%2Frunning-mysql-4-and-mysql-5-concurrently%2F', title: 'Running+MySQL+4+and+MySQL+5+Concurrently' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2008/05/03/running-mysqld-as-standalone-application-on-windows/' rel='bookmark' title='Running MySQLd as standalone application on Windows'>Running MySQLd as standalone application on Windows</a> <small>My friend asked me how to get MySQL running as...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2008/06/20/running-mysql-4-and-mysql-5-concurrently/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

