简体   繁体   中英

Call to undefined function mysqli_connect() in my Linux cPanel server?

I have included the php.ini file in folder public_html and pasted the mysqli extension. Still the problem is not solved. I updated my PHP and MySQL to the latest possible versions. My server is a dedicated server and not a shared one. I don't want to use the old MySQL function.

Versions

MY PHP version: 5.4.33 MySQL version: 5.5.45-cll.

  1. Create a test page and print the phpinfo() and check if mysqli is enabled or not in your system.

  2. If installed and disable then enable that using php.ini

  3. If not installed in your system then install

    **Mysqli Installation ** http://php.net/manual/en/mysqli.installation.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM