    <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
     <channel>
        <title>Linux.com :: Mandriva LAMP phpMyAdmin connection problem</title>
        <link>http://www.linux.com/archive/forums/topic/3265</link>
        <description>Everything Linux and Open Source</description>
        <dc:language>en-us</dc:language> 
        <dc:creator>Linux.com Admin</dc:creator> 
        <admin:generatorAgent rdf:resource="http://www.linux.com" /> 
        <admin:errorReportsTo rdf:resource="mailto:noreply@linux.com" />
       <sy:updatePeriod>hourly</sy:updatePeriod>
       <sy:updateFrequency>1</sy:updateFrequency>
       <docs>http://backend.userland.com/rss</docs>



<div class="xarbb-noteswrapper">
</div>

   <div class="xarbb-noteswrapper">
       <div class="xar-sub rightnote">
           <div>
                    <a href="http://www.linux.com/archive/forums/topic/3192">
Previous Topic</a>
|
                    <a href="http://www.linux.com/archive/forums/topic/3307">
Next Topic</a>
</div>

           <div>
                    <a href="http://www.linux.com/archive/forums/printtopic/3265?theme=print">
Print this topic</a> |
You are not subscribed            </div>
        </div>
        <div style="clear: both;"></div>
    </div>

    <h1>
        <a class="xar-title" href="http://www.linux.com/archive/forums/topic/3265">Mandriva LAMP phpMyAdmin connection problem</a>
   </h1>


   <div class="xarbb-topiccontrols">
<form action="http://www.linux.com/archive/forums?func=jump" method="post">
   <label for="xarbb_jump_menu">Forum Jump</label>
    <select name="f" id="xarbb_jump_menu" onchange="this.form.submit();">
        <optgroup label="Options">
            <option value="5" selected="selected">
Please select forum            </option>
            <option value="5">--------------------</option>
        </optgroup>
        <optgroup label="Forums">
                <option value="1">New to Linux</option>
                <option value="2">Hardware</option>
                <option value="3">Linux Distributions</option>
                <option value="4">Applications</option>
                <option value="5">Programming and Development</option>
                <option value="6">Miscellaneous Discussion</option>
                <option value="7">Linux.com Writers Forum</option>
                <option value="8">Jobs</option>
        </optgroup>
    </select>
    <input type="submit" class="button" value="Jump" />
</form>
<div style="clear: both;"></div>
   </div>

   <div class="xarbb-topiccontrols">

<span class="xar-sub">
    <a href="http://www.linux.com/archive/forums">
Forum Index    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/category/4181">
        Forums 
    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/forum/5">
        Programming and Development   </a>
</span>
<div style="clear: both;"></div>
   </div>

<div class="xarbb-tablewrapper">



   <table>
       <tr>
           <th scope="col">
Author</th>
           <th scope="col">
Message</th>
       </tr>



            <tr>
                <td class="xar-norm author">
                    <div>
                        <a href="http://www.linux.com/archive/roles/412409">JoshuaWohle</a>
                   </div>
                   <div class="xar-sub">
Joined: Oct 25, 2008<br/>Posts: 3                        <br />
                        <a href="http://www.linux.com/archive/forums?by=412409&amp;func=searchtopics">
Other Topics</a>
                   </div>
               </td>

               <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted Oct 25, 2008 at 8:32:00 PM</span>
                       </div>



<div style="float: left;">
                           <strong class="xar-sub">
Subject: Mandriva LAMP phpMyAdmin connection problem                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div>
                        Hello,

First of all I am still quite a beginner in the Linux world. 
I recently installed mandriva and today I got around to installing the LAMP package (from the repositories) and everything went smooth (almost :P).
Everything seems to work, except the phpMyAdmin connection (or MySQL in general, I'm not sure which is the problem. Anyways, when I try to connect as root on phpMyAdmin (using &quot;root&quot; as username and a blank password as I think that is supposed to be the default, right?) , I get the following error:

 #2002 - Le serveur ne répond pas. (ou l'interface de connexion (&quot;socket&quot;) vers le serveur MySQL local n'est pas correctement configurée). 
or in English:
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured).

And when I run &quot;mysql -u root mysql&quot;, I get the following error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) 

Anyone know what to do here?

Thank you very much! :)</div>

                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/3265#top">
Back to top</a>
</td>
               <td class="xar-alt">

                        <a href="http://www.linux.com/archive/roles/412409">
                            <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                        </a>
                        <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=412409">
                            <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                       </a>
                            <a href="http://">
                                <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                           </a>
</td>
           </tr>





           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/400849">
                                proopnarine                           </a>
</strong>

                   <span class="xar-sub">
<br />
<br />
Joined Apr 03, 2008<br/>Posts: 590<br />
Location:San Francisco<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=400849&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-accent message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Oct 26, 2008 3:43:26 AM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1201663" href="http://www.linux.com/archive/forums/topic/3265#1201663">
                                    Mandriva LAMP phpMyAdmin connection problem                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        This is a frequent problem and it has driven me nuts in the past. I'm not sure if this is the cause in your case, but
1. Make sure that the mysql daemon is actually up and running.
2. Make sure that you've installed the mysql db, since some distros. do not do this automatically. Follow the post-installation procedures here
http://dev.mysql.com/doc/refman/5.1/en/unix-post-installation.html
3. And failing all else, look here
http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/<p class="hiddensignature">
<p>Take the red pill</p>
<p><a href="http://www.calacademy.org/blogs">Climate Change Blog</a></p>
<a href="http://proopnarine.wordpress.com">Food Weblog</a></p>
                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/3265#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/400849">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=400849">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://zeus.calacademy.org/roopnarine/peter.html">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>

           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/412409">
                                JoshuaWohle                           </a>
</strong>

                   <span class="xar-sub">
<br />
Joined Oct 25, 2008<br/>Posts: 3<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=412409&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Oct 26, 2008 8:31:45 AM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1201664" href="http://www.linux.com/archive/forums/topic/3265#1201664">
                                    Mandriva LAMP phpMyAdmin connection problem                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        Am trying to solve it at this vey moment :)
I now get the error:
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!

when I try &quot;mysqladmin version&quot;                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/3265#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/412409">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=412409">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>

           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/412409">
                                JoshuaWohle                           </a>
</strong>

                   <span class="xar-sub">
<br />
Joined Oct 25, 2008<br/>Posts: 3<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=412409&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-accent message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Oct 26, 2008 10:10:10 AM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1201667" href="http://www.linux.com/archive/forums/topic/3265#1201667">
                                    Mandriva LAMP phpMyAdmin connection problem                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        I really can't figure this one out :(                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/3265#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/412409">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=412409">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>

           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/400849">
                                proopnarine                           </a>
</strong>

                   <span class="xar-sub">
<br />
<br />
Joined Apr 03, 2008<br/>Posts: 590<br />
Location:San Francisco<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=400849&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-norm message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Oct 27, 2008 6:06:53 AM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1201730" href="http://www.linux.com/archive/forums/topic/3265#1201730">
                                    Mandriva LAMP phpMyAdmin connection problem                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        Hmm, have you checked that the mysql daemon is running? Does
ps -A
return a pid for mysqld?<p class="hiddensignature">
<p>Take the red pill</p>
<p><a href="http://www.calacademy.org/blogs">Climate Change Blog</a></p>
<a href="http://proopnarine.wordpress.com">Food Weblog</a></p>
                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/3265#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/400849">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=400849">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://zeus.calacademy.org/roopnarine/peter.html">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>

           <tr>
               <td class="xar-norm author">
                   <strong>

                            <a href="http://www.linux.com/archive/roles/412713">
                                Florian N                           </a>
</strong>

                   <span class="xar-sub">
<br />
Joined Oct 30, 2008<br/>Posts: 23<br />
Location:PA<br />
                        <br />
                        <a href="http://www.linux.com/archive/forums?by=412713&amp;func=searchtopics">
Other Topics                        </a>
                    </span>
                </td>

                <td class="xar-accent message">
                   <div class="xarbb-messagecontrols">
                       <div class="leftnote">
                           <span class="xar-sub">
Posted:
                                Oct 31, 2008 3:09:06 AM                           </span>
                       </div>
                       <div class="rightnote">
</div>
                       <div style="float:left;">
                           <strong class="xar-sub">
Subject:
                                <a name="1201990" href="http://www.linux.com/archive/forums/topic/3265#1201990">
                                    Re:  Re:  Mandriva LAMP phpMyAdmin connection problem                                </a>
                            </strong>
                        </div>
                        <div style="clear: both;"></div>
                    </div>

                    <div style="clear: left;">
                        First try and restart mysql.

If that does not help best way to find an issue is to check the logs.
Mysql does not output to a log file by default so you have to set this.
Open /etc/my.cnf and add the next line(to save the errors) in the [mysqld] area to look like this:

[mysql]
other settings you have in here
log-error=/var/log/mysql.log

Save the file then do this:

touch /var/log/mysql.log
chown mysql.mysql /var/log/mysql.log

Start mysql now and check the log file for the error, that will tell you were the issue is.

Hope this helps
[Modified by: Florian N on October 30, 2008 10:10 PM]

[Modified by: Florian N on October 30, 2008 10:11 PM]
<p class="hiddensignature">
<br/>
<b><a href ="http://www.hostechs.com" target="_blank"> A life to learn </a></b> - Personal blog<br/>
</p>
                    </div>
                </td>
            </tr>

            <tr>
                <td class="xar-norm author">
                    <a href="http://www.linux.com/archive/forums/topic/3265#top">
Back to top</a>
</td>

               <td class="xar-alt">

                            <a href="http://www.linux.com/archive/roles/412713">
                                <img src="modules/xarbb/xarimages/new/icon_profile.gif" alt="Profile" />
                            </a>
                            <a href="http://www.linux.com/archive/?module=roles&amp;func=email&amp;uid=412713">
                                <img src="modules/xarbb/xarimages/new/icon_email.gif" alt="Email" />
                           </a>
                                <a href="http://hostechs.com">
                                    <img src="modules/xarbb/xarimages/new/icon_www.gif" alt="Website" />
                               </a>
</td>
           </tr>
</table>
</div>

<div class="xarbb-topiccontrols">

<span class="xar-sub">
    <a href="http://www.linux.com/archive/forums">
Forum Index    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/category/4181">
        Forums 
    </a>
    <span style="font-size: larger;">&#187;</span>
    <a href="http://www.linux.com/archive/forums/forum/5">
        Programming and Development   </a>
</span>

</div>



            </channel>
</rss>
