Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing "mysqli_connect()"
#1
I know its not called mysqli_connect, but f it. Basically i need to get rid of my error "ERROR : mysqli_connect() is not exists!".

Server is centos.
Reply
#2
Did you install the mySQL?

Then do mysqli_connect() test(had to google the exact code)

<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");

/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}

printf("Host information: %s\n", $mysqli->host_info);

/* close connection */
$mysqli->close();
?>
Reply
#3
Yes mysql is installed, i think i need to install mysqli.
Reply
#4
(10-19-2010, 03:31 PM)Kaleb Wrote: Yes mysql is installed, i think i need to install mysqli.

Make sure MySQLi is in fact not present. The easiest way to do this is check the output of phpinfo (). Just do a search for "mysqli", it should be directly under your MySQL configuration data. If it isn't present then you'll need to install the extension. To do so you need to recompile PHP with MySQLi configured. You can find directions to do so here.
Ho, ho, ho! Well, if it isn't fat stinking billy goat Billy Boy in poison!
How art thou, thou globby bottle of cheap, stinking chip oil?
Come and get one in the yarbles, if ya have any yarbles, you eunuch jelly thou!
Reply
#5
you can re-install if it is error based but I dont beleive their is a problem...
Do what Disease said
slowly getting better
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Installing .php, mysql and apache on Ubuntu [Help] haphazard 0 668 10-27-2010, 08:00 PM
Last Post: haphazard
  Need help with installing encoders howman 10 2,285 11-03-2009, 04:18 PM
Last Post: howman

Forum Jump:


Users browsing this thread: 1 Guest(s)