Changes between Version 47 and Version 48 of howto/MAMP


Ignore:
Timestamp:
Apr 6, 2010, 11:18:56 PM (14 years ago)
Author:
dweber@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/MAMP

    v47 v48  
    216216sudo cp php.ini-production php.ini
    217217}}}
     218
     219Setup the MySQL default socket to use the MacPorts configuration (/opt/local/var/run/mysql5/mysqld.sock)
     220
     221{{{
     222$ sudo -i
     223# cd /opt/local/etc/php5
     224# cp php.ini php.ini.bak
     225# defSock=`/opt/local/bin/mysql_config5 --socket`
     226# cat php.ini | sed \
     227  -e "s#pdo_mysql\.default_socket.*#pdo_mysql\.default_socket=${defSock}#" \
     228  -e "s#mysql\.default_socket.*#mysql\.default_socket=${defSock}#" \
     229  -e "s#mysqli\.default_socket.*#mysqli\.default_socket=${defSock}#" > tmp.ini
     230# grep default_socket tmp.ini  # Check it!
     231# mv tmp.ini php.ini
     232# exit # OR rm php.ini.bak && exit
     233}}}
     234
    218235
    219236If you installed php5 with the +pear variant you should also:
     
    300317Where ' ' is an empty password; fill it with your MySQL root password. You can either change the 'auth_type' from 'config' to 'cookie' or 'httpd', or alternatively provide the password you selected for the root user in the 'password' option.
    301318
     319There is also an interactive setup, see http://www.phpmyadmin.net/documentation/#setup_script and the demo at http://www.phpmyadmin.net/documentation/setup/
     320
    302321To check your phpMyAdmin installation, point your browser to http://localhost/phpmyadmin and verify that phpMyAdmin loads and can access your database (by providing a username and password, depending on the authentication method you selected).
    303322