如何在 MacOS 上安装 MySQLi [英] How to install MySQLi on MacOS

查看:27
本文介绍了如何在 MacOS 上安装 MySQLi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到有关在 Mac 上安装 MySQLi 的说明.需要说明的是,MySQL 是最新的,我运行的是 PHP 5.如何安装它?我从哪里得到它?谢谢你的帮助.我会给回答这个问题的人投赞成票和一个复选标记!

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆