Getting phpMyAdmin to work on Mac OS X

Does anyone here know how to configure phpMyAdmin to work on a Mac OS X?  I have tried so many times with different versions and I keep getting the same error message:

#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)

Which I don't understand why I would be getting this message since I am using:

$cfg['Servers'][$i]['connect_type'] = 'tcp';

Can anyone help me out here?  The code to my file is below.


/* $Id: 9689 2006-11-10 20:05:49Z nijel $ */
// vim: expandtab sw=4 ts=4 sts=4:

 * phpMyAdmin sample configuration, you can use it as base for
 * manual configuration. For easier setup you can use scripts/setup.php
 * All directives are explained in Documentation.html and on phpMyAdmin
 * wiki <>.

 * This is needed for cookie based authentication to encrypt password in
 * cookie
$cfg['blowfish_secret'] = 'anything'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

 * Servers configuration
$i = 0;

 * First server
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['user'] = 'root';
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/* User for advanced features */
// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';
/* Advanced phpMyAdmin features */
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
// $cfg['Servers'][$i]['relation'] = 'pma_relation';
// $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
// $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
// $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
// $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
// $cfg['Servers'][$i]['history'] = 'pma_history';
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';

 * End of servers configuration

 * Directories for saving/loading files from server
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

Who is Participating?
gamebitsConnect With a Mentor Commented:
I dont have a Mac so I cannot try any of that but there is a link that might help you
pingeyegAuthor Commented:
Yea, I've already tried that numerous times.  I just don't understand what I am missing since i am running this on my test server here on my own computer.  This is not going onto the Internet.  I tried the demo on and it worked great, but on my mine it won't.  Arg!
pingeyegAuthor Commented:
YYYYYYYYYEEEEEEEEEEEEESSSSSSSSSSSSSSSSS!!!!!!!!!!!!!!!!!!  I finally got it to work.  I had to change the connect-type to socket and specify the socket to /tmp/mysql.sock.  Now it WORKS!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.