<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Running multiple instances of MySQL on the same machine</title> <atom:link href="http://www.ducea.com/2009/01/19/running-multiple-instances-of-mysql-on-the-same-machine/feed/" rel="self" type="application/rss+xml" /><link>http://www.ducea.com/2009/01/19/running-multiple-instances-of-mysql-on-the-same-machine/</link> <description>The Journal Of A Linux Sysadmin</description> <lastBuildDate>Sat, 31 Jul 2010 13:48:55 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0</generator> <item><title>By: Arthur N. Ketcham</title><link>http://www.ducea.com/2009/01/19/running-multiple-instances-of-mysql-on-the-same-machine/comment-page-1/#comment-181875</link> <dc:creator>Arthur N. Ketcham</dc:creator> <pubDate>Thu, 03 Jun 2010 20:09:05 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/?p=543#comment-181875</guid> <description>In Ubuntu 10.04, paths allowed access by mysql is &quot;secured&quot; with apparmor. This has the effect of causing the mysql_install_db operation to fail. I&#039;d detailed how to fix this quickly in this ubuntu forums post: http://ubuntuforums.org/showpost.php?p=9405790&amp;postcount=6</description> <content:encoded><![CDATA[<p>In Ubuntu 10.04, paths allowed access by mysql is &#8220;secured&#8221; with apparmor. This has the effect of causing the mysql_install_db operation to fail. I&#8217;d detailed how to fix this quickly in this ubuntu forums post: <a
href="http://ubuntuforums.org/showpost.php?p=9405790&amp;postcount=6" rel="nofollow">http://ubuntuforums.org/showpost.php?p=9405790&amp;postcount=6</a></p> ]]></content:encoded> </item> <item><title>By: Rizqi</title><link>http://www.ducea.com/2009/01/19/running-multiple-instances-of-mysql-on-the-same-machine/comment-page-1/#comment-181753</link> <dc:creator>Rizqi</dc:creator> <pubDate>Sat, 17 Apr 2010 10:31:25 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/?p=543#comment-181753</guid> <description>Thank you for this post. Iam going to setup replication mysql on same server. This post really help a lot!! :-)</description> <content:encoded><![CDATA[<p>Thank you for this post. Iam going to setup replication mysql on same server. This post really help a lot!! <img
src='http://www.ducea.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: almost effortless &#187; Weekly Digest, 1-25-09</title><link>http://www.ducea.com/2009/01/19/running-multiple-instances-of-mysql-on-the-same-machine/comment-page-1/#comment-181707</link> <dc:creator>almost effortless &#187; Weekly Digest, 1-25-09</dc:creator> <pubDate>Tue, 30 Mar 2010 15:54:45 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/?p=543#comment-181707</guid> <description>[...] Running multiple instances of MySQL on the same machine &#124; MDLog:/sysadmin As you phase MySQL out of your life, you may find that you want to centralize all your legacy MySQL db&#039;s (e.g. your 4.x MySQL db that you can&#039;t upgrade and your current 5.x that you don&#039;t want chewing up resources on your production machines and that 5.1.x that you had to install in order to make it clear to your superiors that MySQL was dead) on a single machine. This is a good guide to getting started on that. [...]</description> <content:encoded><![CDATA[<p>[...] Running multiple instances of MySQL on the same machine | MDLog:/sysadmin As you phase MySQL out of your life, you may find that you want to centralize all your legacy MySQL db&#39;s (e.g. your 4.x MySQL db that you can&#39;t upgrade and your current 5.x that you don&#39;t want chewing up resources on your production machines and that 5.1.x that you had to install in order to make it clear to your superiors that MySQL was dead) on a single machine. This is a good guide to getting started on that. [...]</p> ]]></content:encoded> </item> <item><title>By: - Marius -</title><link>http://www.ducea.com/2009/01/19/running-multiple-instances-of-mysql-on-the-same-machine/comment-page-1/#comment-181617</link> <dc:creator>- Marius -</dc:creator> <pubDate>Mon, 22 Feb 2010 16:28:08 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/?p=543#comment-181617</guid> <description>@d.bilbao: it should work the same as on different machines. Just be sure to use the proper MASTER_PORT if needed.</description> <content:encoded><![CDATA[<p>@d.bilbao: it should work the same as on different machines. Just be sure to use the proper MASTER_PORT if needed.</p> ]]></content:encoded> </item> <item><title>By: d.bilbao</title><link>http://www.ducea.com/2009/01/19/running-multiple-instances-of-mysql-on-the-same-machine/comment-page-1/#comment-181615</link> <dc:creator>d.bilbao</dc:creator> <pubDate>Sun, 21 Feb 2010 12:26:00 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/?p=543#comment-181615</guid> <description>How to setup a replication server on same hos running to instances of mysql?
any idea?</description> <content:encoded><![CDATA[<p>How to setup a replication server on same hos running to instances of mysql?<br
/> any idea?</p> ]]></content:encoded> </item> <item><title>By: - Marius -</title><link>http://www.ducea.com/2009/01/19/running-multiple-instances-of-mysql-on-the-same-machine/comment-page-1/#comment-181437</link> <dc:creator>- Marius -</dc:creator> <pubDate>Wed, 16 Dec 2009 00:02:06 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/?p=543#comment-181437</guid> <description>@Andrew: thank you for your addition to the post.</description> <content:encoded><![CDATA[<p>@Andrew: thank you for your addition to the post.</p> ]]></content:encoded> </item> <item><title>By: Andrew Pimlott</title><link>http://www.ducea.com/2009/01/19/running-multiple-instances-of-mysql-on-the-same-machine/comment-page-1/#comment-181365</link> <dc:creator>Andrew Pimlott</dc:creator> <pubDate>Fri, 11 Dec 2009 23:30:00 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/?p=543#comment-181365</guid> <description>I took this a little further by integrating it with the debian init.d script, which includes some maintenance tasks done under the mysql user debian-sys-maint.  I basically pulled out the parts of the dpkg .postinst script that set this up.  You can get the debian-sys-maint from /etc/mysql/debian.cnf.  Here is a summary of what I did (I called my second instance mysql.replica instead of mysql2):- sudo mkdir /var/lib/mysql.replica
sudo chown mysql.mysql /var/lib/mysql.replica
- cp -r /etc/mysql /etc/mysql.replica
edit paths, port (3307)
- cp /etc/init.d/mysql /etc/init.d/mysql.replica
edit paths
add --defaults-file=/etc/mysql.replica/my.cnf to mysqld_safe
add --defaults-file=/etc/mysql.replica/my.cnf to mysqld
- mysql_install_db --user=mysql --datadir=/var/lib/mysql.replica
- /etc/init.d/mysql.replica start
- mysql --defaults-file=/etc/mysql.replica/my.cnf -u root
ALTER TABLE user CHANGE password Password varchar(41) collate utf8_bin NOT NULL default &#039;&#039;;
UPDATE user SET password=PASSWORD(&quot;&quot;) WHERE user=&#039;root&#039;;
FLUSH PRIVILEGES;
REPLACE INTO user SET
host=&#039;localhost&#039;, user=&#039;debian-sys-maint&#039;, password=password(&#039;&#039;),
Select_priv=&#039;Y&#039;, Insert_priv=&#039;Y&#039;, Update_priv=&#039;Y&#039;, Delete_priv=&#039;Y&#039;,
Create_priv=&#039;Y&#039;, Drop_priv=&#039;Y&#039;, Reload_priv=&#039;Y&#039;, Shutdown_priv=&#039;Y&#039;,
Process_priv=&#039;Y&#039;,  File_priv=&#039;Y&#039;, Grant_priv=&#039;Y&#039;, References_priv=&#039;Y&#039;,
Index_priv=&#039;Y&#039;, Alter_priv=&#039;Y&#039;, Show_db_priv=&#039;Y&#039;, Super_priv=&#039;Y&#039;,
Create_tmp_table_priv=&#039;Y&#039;, Lock_tables_priv=&#039;Y&#039;, Execute_priv=&#039;Y&#039;,
Repl_slave_priv=&#039;Y&#039;, Repl_client_priv=&#039;Y&#039;;
- update-rc.d mysql.replica defaults 19 21The second instance can now be started and stopped (and will start automatically at boot) just like the primary instance.</description> <content:encoded><![CDATA[<p>I took this a little further by integrating it with the debian init.d script, which includes some maintenance tasks done under the mysql user debian-sys-maint.  I basically pulled out the parts of the dpkg .postinst script that set this up.  You can get the debian-sys-maint from /etc/mysql/debian.cnf.  Here is a summary of what I did (I called my second instance mysql.replica instead of mysql2):</p><p> &#8211; sudo mkdir /var/lib/mysql.replica<br
/> sudo chown mysql.mysql /var/lib/mysql.replica<br
/> &#8211; cp -r /etc/mysql /etc/mysql.replica<br
/> edit paths, port (3307)<br
/> &#8211; cp /etc/init.d/mysql /etc/init.d/mysql.replica<br
/> edit paths<br
/> add &#8211;defaults-file=/etc/mysql.replica/my.cnf to mysqld_safe<br
/> add &#8211;defaults-file=/etc/mysql.replica/my.cnf to mysqld<br
/> &#8211; mysql_install_db &#8211;user=mysql &#8211;datadir=/var/lib/mysql.replica<br
/> &#8211; /etc/init.d/mysql.replica start<br
/> &#8211; mysql &#8211;defaults-file=/etc/mysql.replica/my.cnf -u root<br
/> ALTER TABLE user CHANGE password Password varchar(41) collate utf8_bin NOT NULL default &#8221;;<br
/> UPDATE user SET password=PASSWORD(&#8220;&#8221;) WHERE user=&#8217;root&#8217;;<br
/> FLUSH PRIVILEGES;<br
/> REPLACE INTO user SET<br
/> host=&#8217;localhost&#8217;, user=&#8217;debian-sys-maint&#8217;, password=password(&#8221;),<br
/> Select_priv=&#8217;Y', Insert_priv=&#8217;Y', Update_priv=&#8217;Y', Delete_priv=&#8217;Y',<br
/> Create_priv=&#8217;Y', Drop_priv=&#8217;Y', Reload_priv=&#8217;Y', Shutdown_priv=&#8217;Y',<br
/> Process_priv=&#8217;Y',  File_priv=&#8217;Y', Grant_priv=&#8217;Y', References_priv=&#8217;Y',<br
/> Index_priv=&#8217;Y', Alter_priv=&#8217;Y', Show_db_priv=&#8217;Y', Super_priv=&#8217;Y',<br
/> Create_tmp_table_priv=&#8217;Y', Lock_tables_priv=&#8217;Y', Execute_priv=&#8217;Y',<br
/> Repl_slave_priv=&#8217;Y', Repl_client_priv=&#8217;Y';<br
/> &#8211; update-rc.d mysql.replica defaults 19 21</p><p>The second instance can now be started and stopped (and will start automatically at boot) just like the primary instance.</p> ]]></content:encoded> </item> <item><title>By: i.ndustrio.us &#187; links for 2009-10-29</title><link>http://www.ducea.com/2009/01/19/running-multiple-instances-of-mysql-on-the-same-machine/comment-page-1/#comment-181223</link> <dc:creator>i.ndustrio.us &#187; links for 2009-10-29</dc:creator> <pubDate>Thu, 29 Oct 2009 23:08:38 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/?p=543#comment-181223</guid> <description>[...] Running multiple instances of MySQL on the same machine &#124; MDLog:/sysadmin      This entry was written by delicious and posted on October 29, 2009 at 3:08 pm and filed under links. Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL. [...]</description> <content:encoded><![CDATA[<p>[...] Running multiple instances of MySQL on the same machine | MDLog:/sysadmin      This entry was written by delicious and posted on October 29, 2009 at 3:08 pm and filed under links. Bookmark the permalink. Follow any comments here with the <abbr
class="uttInitialism" title="Really Simple Syndication">RSS</abbr> feed for this post. Post a comment or leave a trackback: Trackback <abbr
class="uttInitialism" title="Uniform Resource Locator">URL</abbr>. [...]</p> ]]></content:encoded> </item> <item><title>By: i.ndustrio.us &#187; Installing mysqlslap on a MediaTemple DV w/CentOS5</title><link>http://www.ducea.com/2009/01/19/running-multiple-instances-of-mysql-on-the-same-machine/comment-page-1/#comment-181216</link> <dc:creator>i.ndustrio.us &#187; Installing mysqlslap on a MediaTemple DV w/CentOS5</dc:creator> <pubDate>Wed, 28 Oct 2009 00:18:34 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/?p=543#comment-181216</guid> <description>[...] Creating a 2nd MySQL Instance Very simple and straightforward. Follow these instructions on ducea.com. [...]</description> <content:encoded><![CDATA[<p>[...] Creating a 2nd MySQL Instance Very simple and straightforward. Follow these instructions on ducea.com. [...]</p> ]]></content:encoded> </item> <item><title>By: Matthias</title><link>http://www.ducea.com/2009/01/19/running-multiple-instances-of-mysql-on-the-same-machine/comment-page-1/#comment-181213</link> <dc:creator>Matthias</dc:creator> <pubDate>Mon, 26 Oct 2009 18:29:02 +0000</pubDate> <guid
isPermaLink="false">http://www.ducea.com/?p=543#comment-181213</guid> <description>If anyone is trying this and receive this result when installing the 2nd database:
ERROR: 1005 Can&#039;t create table &#039;db&#039; (errno: 13)although all the permissions are correct ... take a look into your /var/log/syslog ... it is possible, that apparmor is installed and blocks any r/w access from mysqld outside its default directories ...You have to update the apparmor configuration /etc/apparmor.d/usr.sbin.mysqld - and restart apparmor!regards</description> <content:encoded><![CDATA[<p>If anyone is trying this and receive this result when installing the 2nd database:<br
/> ERROR: 1005 Can&#8217;t create table &#8216;db&#8217; (errno: 13)</p><p>although all the permissions are correct &#8230; take a look into your /var/log/syslog &#8230; it is possible, that apparmor is installed and blocks any r/w access from mysqld outside its default directories &#8230;</p><p>You have to update the apparmor configuration /etc/apparmor.d/usr.sbin.mysqld &#8211; and restart apparmor!</p><p>regards</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: www.ducea.com @ 2010-07-31 16:39:42 by W3 Total Cache -->