pingeyeg
asked on
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]['conne ct_type'] = 'tcp';
Can anyone help me out here? The code to my config.inc.php file is below.
<?php
/* $Id: config.sample.inc.php 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 <http://wiki.cihar.com>.
*/
/*
* 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
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_ type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host' ] = 'localhost';
$cfg['Servers'][$i]['conne ct_type'] = 'tcp';
$cfg['Servers'][$i]['compr ess'] = false;
$cfg['Servers'][$i]['user' ] = 'root';
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['exten sion'] = 'mysql';
/* User for advanced features */
// $cfg['Servers'][$i]['contr oluser'] = 'pma';
// $cfg['Servers'][$i]['contr olpass'] = 'pmapass';
/* Advanced phpMyAdmin features */
// $cfg['Servers'][$i]['pmadb '] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookm arktable'] = 'pma_bookmark';
// $cfg['Servers'][$i]['relat ion'] = 'pma_relation';
// $cfg['Servers'][$i]['table _info'] = 'pma_table_info';
// $cfg['Servers'][$i]['table _coords'] = 'pma_table_coords';
// $cfg['Servers'][$i]['pdf_p ages'] = 'pma_pdf_pages';
// $cfg['Servers'][$i]['colum n_info'] = 'pma_column_info';
// $cfg['Servers'][$i]['histo ry'] = 'pma_history';
// $cfg['Servers'][$i]['desig ner_coords '] = 'pma_designer_coords';
/*
* End of servers configuration
*/
/*
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
#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]['conne
Can anyone help me out here? The code to my config.inc.php file is below.
<?php
/* $Id: config.sample.inc.php 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 <http://wiki.cihar.com>.
*/
/*
* 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
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_
/* Server parameters */
$cfg['Servers'][$i]['host'
$cfg['Servers'][$i]['conne
$cfg['Servers'][$i]['compr
$cfg['Servers'][$i]['user'
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['exten
/* User for advanced features */
// $cfg['Servers'][$i]['contr
// $cfg['Servers'][$i]['contr
/* Advanced phpMyAdmin features */
// $cfg['Servers'][$i]['pmadb
// $cfg['Servers'][$i]['bookm
// $cfg['Servers'][$i]['relat
// $cfg['Servers'][$i]['table
// $cfg['Servers'][$i]['table
// $cfg['Servers'][$i]['pdf_p
// $cfg['Servers'][$i]['colum
// $cfg['Servers'][$i]['histo
// $cfg['Servers'][$i]['desig
/*
* End of servers configuration
*/
/*
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
YYYYYYYYYEEEEEEEEEEEEESSSS SSSSSSSSSS SSS!!!!!!! !!!!!!!!!! ! 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!!
ASKER