Why would mysql_connect randomly not work?

Asked
Active3 hr before
Viewed126 times

2 Answers

90%

mysql_connect() - Open a connection to a MySQL Server,mysql_pconnect — Open a persistent connection to a MySQL server, Establishes a persistent connection to a MySQL server. ,Persistent Database Connections

load more v
88%

Try checking to see
if the PHP MySQL extension module is being loaded:

   <
   ? php
phpinfo(); ?
>

If it 's not there, add the following to the php.ini file:

extension = php_mysql.dll

Save and Restart You Apache HTTP Server
load more v

Other "undefined-undefined" queries related to "Why would mysql_connect randomly not work?"