Mac下再次使用phpMyAdmin
重新启动apache
启动apache
sudo apachectl restart
进入localhost/
发现启动了!
修改localhost:80/下的默认位置
/etc/apache2/httpd.conf
修改
DocumentRoot "/Library/WebServer/Documents"
<Directory "/Library/WebServer/Documents">
修改文件根目录为
DocumentRoot "/Users/wf/mySites"
<Directory "/Users/wf/mySites">
网站根目录下写个index.html
重新启动apache
再进入localhost/发现好用了。
使用phpMyAdmin
/Users/wf/mySites目录下刚好有我解压后的phpMyAdmin
启动mysql
在浏览器中输入
http://localhost/phpmyadmin/index.php
可以正常使用了!