开发者

Moved servers, and now getting a Fatal error: Call to undefined function mysqli_connect()

开发者 https://www.devze.com 2023-01-26 03:54 出处:网络
I just switched from a dedicated server to a virtual server.I have a development site that I have that this function worked just fine, but now does not work:

I just switched from a dedicated server to a virtual server. I have a development site that I have that this function worked just fine, but now does not work:

$link = mysqli_connect($hostname_connAdmin, $username_connAdmin, $password_connAdmin, $database_connAdmin);
 $adCats = mysqli_query($link, "call adTypes()");

And this is what I get in the browser now: Fatal error: Call to undefined function mysqli_connect()

I am totally lost as to how to get this working. I have a page that does php_info at http://www.randykrohn.com/test.php

Here is the page in question (and every other page on the site, because the error is occurring on an included开发者_开发百科 page).


mysqli extension is not loaded. Apparently, you have a compiled version of PHP (as opposed to a pre-compiled binary). You will need to recompile with mysqli support:

./configure --with-mysqli=/path/to/mysql_config ...

See this manual page for more information.

0

精彩评论

暂无评论...
验证码 换一张
取 消