Changes between Version 47 and Version 48 of howto/MAMP
- Timestamp:
- Apr 6, 2010, 11:18:56 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/MAMP
v47 v48 216 216 sudo cp php.ini-production php.ini 217 217 }}} 218 219 Setup 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 218 235 219 236 If you installed php5 with the +pear variant you should also: … … 300 317 Where ' ' 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. 301 318 319 There is also an interactive setup, see http://www.phpmyadmin.net/documentation/#setup_script and the demo at http://www.phpmyadmin.net/documentation/setup/ 320 302 321 To 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). 303 322