84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
php新手安装mysql环境,我用homebrew安装的,根据这篇文章安装。安装完成以后,无法连接mysql,mysql_connect is not defined这怎么破。我看了写网上的资料,在php.ini文件中加上extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20121212",extension_dir的目录中并没有mysql扩展。要怎么安装mysql扩展呢,系统mac,还有一个很蛋疼的mcrypt也没有。
mysql_connect is not defined
extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20121212"
欢迎选择我的课程,让我们一起见证您的进步~~
homebrew安装那很方便啊。
按照这个文章装 http://brianflove.com/2014/12/10/png-support-for-php-on-os-x-yosemite/ 吧,我装的php56,自带了mysql扩展,根本不用去编译啊。
安装mcrypt扩展使用brew install php56-mcrypt就行了
brew install php56-mcrypt
我就直接安装虚拟机来搞了……
homebrew安装那很方便啊。
按照这个文章装 http://brianflove.com/2014/12/10/png-support-for-php-on-os-x-yosemite/ 吧,我装的php56,自带了mysql扩展,根本不用去编译啊。
安装mcrypt扩展使用
brew install php56-mcrypt
就行了我就直接安装虚拟机来搞了……