<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>PHP, the universe and all the rest - Puppet</title>
    <link>http://www.php-groupies.de/blogs/</link>
    <description>PHP Groupie since 1999 </description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.0.3 - http://www.s9y.org/</generator>
    <pubDate>Tue, 04 Oct 2011 06:29:10 GMT</pubDate>

    <image>
        <url>http://www.php-groupies.de/blogs/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: PHP, the universe and all the rest - Puppet - PHP Groupie since 1999 </title>
        <link>http://www.php-groupies.de/blogs/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Overriding bind=... in included MySQL option files</title>
    <link>http://www.php-groupies.de/blogs/archives/40-Overriding-bind...-in-included-MySQL-option-files.html</link>
            <category>MySQL</category>
            <category>Puppet</category>
    
    <comments>http://www.php-groupies.de/blogs/archives/40-Overriding-bind...-in-included-MySQL-option-files.html#comments</comments>
    <wfw:comment>http://www.php-groupies.de/blogs/wfwcomment.php?cid=40</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.php-groupies.de/blogs/rss.php?version=2.0&amp;type=comments&amp;cid=40</wfw:commentRss>
    

    <author>nospam@example.com (Hartmut Holzgraefe)</author>
    <content:encoded>
    &lt;p&gt;Debian and Ubuntu make use of the &lt;b&gt;!includedir&lt;/b&gt; directive at the end of the packaged &lt;b&gt;my.cnf&lt;/b&gt; to allow for extending and overriding their default configuration without having to modify the distribution config file.&lt;/p&gt;

&lt;p&gt;This is especially nice in combination with configuration tools like &lt;b&gt;puppet&lt;/b&gt; as it is usually much easier to add a file to the system than to modify an existing file.&lt;/p&gt;

&lt;p&gt;I ran into a small gotcha with this though: the default my.cnf binds mysqld to the localhost TCP interface so that it listens IP 127.0.0.1 only. To make the mysql server reachable from other hosts the &lt;b&gt;bind=127.0.0.1&lt;/b&gt; setting needs to be overwritten.&lt;br /&gt;
How to change the binding to a different IP should be obvious, but how to disable an existing binding completely if you want your mysqld to listen on all available interfaces?&lt;/p&gt;

&lt;p&gt;The most obvious would be to simply say&lt;/p&gt;

&lt;p&gt;bind=&lt;/p&gt;

&lt;p&gt;, this does not have any effect though. What needs to be done instead is&lt;/p&gt;

&lt;p&gt;bind=0.0.0.0&lt;/p&gt;

&lt;p&gt;to make mysqld listen on all interfaces again.&lt;/p&gt;

&lt;p&gt;This is obviously a solution for IPv4 only, for allowing incoming connections from all v4 and v6 interfaces allowing &lt;b&gt;bind=&lt;/b&gt; without any argument to reset any existing bindings would probably be more clever?&lt;/p&gt;

 
    </content:encoded>

    <pubDate>Tue, 04 Oct 2011 08:29:10 +0200</pubDate>
    <guid isPermaLink="false">http://www.php-groupies.de/blogs/archives/40-guid.html</guid>
    
</item>

</channel>
</rss>