続いて、MySQLの管理ツール「phpmyadmin」をインストールします。
$ port search phpmyadmin phpmyadmin @3.3.5.1 (www, php, databases) A tool written in PHP intended to handle the administration of MySQL over the Web.
macportsの扱いにもそろそろ慣れてきましたね。
$ sudo port install phpmyadmin ・・・ A new configuration file has been created at /opt/local/www/phpmyadmin/config.inc.php. Please refer to the phpMyAdmin documentation when editing this file, an online version of which can be found at http://www.phpmyadmin.netdocumentation/Documentation.html#config ・・・
設定ファイルが作成されたので編集してください。と
デフォルトの設定ファイルをバックアップしておきます。
$ sudo cp /opt/local/www/phpmyadmin/config.inc.php /opt/local/www/phpmyadmin/config.inc.php.bak
$ sudo vi /opt/local/www/phpmyadmin/config.inc.php // conneatタイプをsocketに変更 $cfg['Servers'][$i]['connect_type'] = 'socket'; // socket接続先を追加 $cfg['Servers'][$i]['socket'] = '/opt/local/var/run/mysql5/mysqld.sock';
<Directory /opt/local/www/phpmyadmin> Options FollowSymLinks AllowOverride All Order deny,allow Deny from all Allow from all </Directory> Alias /phpMyAdmin /opt/local/www/phpmyadmin
$ sudo /opt/local/apache2/bin/apachectl restart
http://localhost/phpMyAdmin/ に接続。MySQLのID、passでログイン。OK^^v
参考サイト:MacPortsでphpMyAdminをインストール
$ sudo port install phpmyadmin ---> Computing dependencies for phpmyadmin ---> Fetching phpmyadmin ---> Attempting to fetch phpMyAdmin-3.3.5.1-all-languages.tar.bz2 from http://jaist.dl.sourceforge.net/phpmyadmin ---> Verifying checksum(s) for phpmyadmin ---> Extracting phpmyadmin ---> Configuring phpmyadmin ---> Building phpmyadmin ---> Staging phpmyadmin into destroot ---> Installing phpmyadmin @3.3.5.1_0 ---> Activating phpmyadmin @3.3.5.1_0 A new configuration file has been created at /opt/local/www/phpmyadmin/config.inc.php. Please refer to the phpMyAdmin documentation when editing this file, an online version of which can be found at http://www.phpmyadmin.netdocumentation/Documentation.html#config ---> Cleaning phpmyadmin
投稿日: