PHP mysql Extension

Source: Internet
Author: User
Tags mcrypt php mysql php mysql extension
PHP Novice Install MySQL environment, I installed with homebrew, according to this article installation. After the installation is complete, unable to connect MySQL, mysql_connect is not defined this how broken. I read the online information, add in the php.ini file, the extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20121212" Extension_dir directory does not have MySQL extension. How to install MySQL extension, System Mac, there is also a very painful mcrypt.

Reply content:

PHP Novice Install MySQL environment, I installed with homebrew, according to this article installation. After the installation is complete, unable to connect MySQL, mysql_connect is not defined this how broken. I read the online information, add in the php.ini file, the extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20121212" Extension_dir directory does not have MySQL extension. How to install MySQL extension, System Mac, there is also a very painful mcrypt.

Homebrew installation that's convenient.

According to this article loaded http://brianflove.com/2014/12/10/png-support-for-php-on-os-x-yosemite/bar, I installed the php56, since the MySQL extension, do not have to compile AH.

Install the MCrypt extension and use brew install php56-mcrypt it.

I just installed the virtual machine to do ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.