我使用homebrew
brew install phpmyadmin
Note that this formula will NOT install mysql. It is not
required since you might want to get connected to a remote
database server.
Webserver configuration example (add this at the end of
your /etc/apache2/httpd.conf for instance) :
Alias /phpmyadmin /usr/local/share/phpmyadmin
<Directory /usr/local/share/phpmyadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
Then, open http://localhost/phpmyadmin
More documentation : file:///usr/local/Cellar/phpmyadmin/4.3.11.1/share/phpmyadmin/doc/
Configuration has been copied to /usr/local/etc/phpmyadmin.config.inc.php
Don't forget to:
- change your secret blowfish
- uncomment the configuration lines (pma, pmapass ...)
==> Summary
/usr/local/Cellar/phpmyadmin/4.3.11.1: 1,898 files, 55.2M, built in 2 seconds
输出结果如下:
httpd.conf
我使用该详细信息块更新了localhost/phpmyadmin
。我还更新了我的河豚,并在配置行中取消注释。
当我转到{{1}}时,我收到404错误。
我会找到界面的任何想法,以便我可以更轻松地构建/更新我的数据库。
答案 0 :(得分:0)
我也遇到过这个问题。
为了在你的apache中使用phpMyAdmin,你必须使用这个命令在/usr/local/var/www/htdocs
中创建符号链接。 (如果您没有更改DocumentRoot
)
cd /usr/local/var/www/htdocs
ln -s /usr/local/Cellar/phpmyadmin/4.3.11.1/share/phpmyadmin ./phpmyadmin