如何在MacOS上安装MySQLi [英] How to install MySQLi on MacOS
问题描述
我找不到有关在Mac上安装MySQLi的说明.需要明确的是,MySQL是最新的,并且我正在运行PHP5.如何安装它?我什至可以从哪里得到它?谢谢你的帮助.我将给回答这个问题的人一个投票和一个复选标记!
I cannot find instructions about installing MySQLi on a Mac. Just to be clear, MySQL is up to date and I am running PHP 5. How do I install it? Where do I even get it from? Thanks for your help. I'll be giving an up vote and a check mark to whoever answers this!
推荐答案
MySQLi是PHP的一部分.应该有一个可用的php-mysqli类型程序包,或者您可以获取PHP源代码并重新编译启用了mysqli的程序.您可能已经安装了它,但是它已作为一个模块完成并被禁用.检查您的php.ini中是否为extension=mysqli.so
或类似名称.它可能已被注释掉,或者.so文件存在于扩展目录中,但未通过该extension =指令链接到PHP.
MySQLi is part of PHP. There should be a php-mysqli type package available, or you can take the PHP source and recompile that mysqli enabled. You may already have it installed, but it's done as a module and is disabled. Check your php.ini for extension=mysqli.so
or similar. it may be commented out, or the .so file is present in your extensions directory but not linked to PHP via that extension= directive.
这篇关于如何在MacOS上安装MySQLi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!