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

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

WBOY
Release: 2016-06-23 13:41:42
Original
944 people have browsed it

php.ini

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

apache

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

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;
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template