treehouse : what would you like to learn today?
Web Design Web Development iOS Development

phpMyAdmin: MySQL: Error #2002 - Can’t connect to server

  • Hi!

    I’m trying to test a wordpress-blog on my local machine (iMac). Everytime I run phpMyAdmin the above error message is being displayed. MySQL-server is running (show by the mySQL-control-panel in the system-preferences). I’m looking forward to any help!!!

    Thanks,
    Karsten

    PS: Mac OS 10.5.4, MySQL 5.0.51b, phpMyAdmin 2.11.8.1
  • Have you tried mamp? I use it for running a localhost server on my mac and it's very good! 8-)
  • 8-) Mac OS X 10.5 (Leopard) comes with Apache 2.2.6 and PHP 5.2.4 preinstalled, U just have to enable it.. So downloading a mamp is kinda double installation.
  • "Edwin" said:
    Have you tried mamp?
    Yes, I gave it a try but the MySQL-server stopped and was only running again after reinstalling mamp. And after a while the server stopped again :-(
  • ".V1" said:
    Mac OS X 10.5 (Leopard) comes with Apache 2.2.6 and PHP 5.2.4 preinstalled, U just have to enable it.
    Yes, I know. But how to enable both? That’s my problem, I think …
  • I am happy to still run stable on my Mac OS X 10.4 Tiger ;)
  • "K. Geisler" said:
    [quote=".V1"]Mac OS X 10.5 (Leopard) comes with Apache 2.2.6 and PHP 5.2.4 preinstalled, U just have to enable it.
    Yes, I know. But how to enable both? That’s my problem, I think …[/quote]
    My friend David Powers wrote a nice guide on it:

    http://foundationphp.com/tutorials/php_leopard.php

    This should help u to enable it.
  • ".V1" said:
    This should help u to enable it.

    Hi .V1!

    Sorry, the problem is not that php is not running (because it runs ;-) – my problem is the connection PHP to mySQL to work with phpMyAdmin …

    Thanks for advice
    Karsten
  • "K. Geisler" said:
    [quote=".V1"]This should help u to enable it.

    Hi .V1!

    Sorry, the problem is not that php is not running (because it runs ;-) – my problem is the connection PHP to mySQL to work with phpMyAdmin …

    Thanks for advice
    Karsten[/quote]
    I know i was just helping out Geisler :p

    anyways check out this:

    http://www.postal-code.com/mrhappy/blog ... os-x-1044/
  • FIXED!

    Finally I fixed the problem by doing endless hours of trial & error … 
    And I’m not shure which exact step was responsible for connecting the server …

    Thanks for advice!