Home >Backend Development >PHP Tutorial >Mac 下mysql,apache,php的一些配置操作

Mac 下mysql,apache,php的一些配置操作

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 13:41:42989browse

php.ini

文件地址 /private/etc/php.ini     php不显示错误提示,那么 display_errors = Off 和 error_reporting 前的注释(;)去掉,重启apache就OK

apache

开启重启和关闭    sudo apachectl start/restart/stop     把.php/.html文件放在/Library/WebServer/Documents下,直接在浏览器中运行即可。

mysql

开启  /usr/local/mysql/bin/mysql -u root -p   修改用户密码             启动mysql;          mysql>use mysql;          mysql> update user set password=password(" new password") where user="user name";           mysql> flush privileges;
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn