Missing MySQL Error – a possible fix for those who are on hosted accts
-
Hi folks,
Just installed wp1.5 on a hosted account (I can’t install modules). I got the error that goes something along the lines of “your PHP installation appears to be missing the MySQL extension”…
When I dug around in the forums, I found this error was coming from this line in the file wp-settings.php:
———-
if ( !extension_loaded(‘mysql’) )
die( ‘Your PHP installation appears to be missing the MySQL which is required for WordPress.’ )
———-
I’m not a coder, but I figured that the command “die” meant to stop processing the script because my host didn’t have mysql extensions… they claimed they did have them… so I used the following (nabbed from a php help site somewhere!) cut it, pasted this, saved it, ran it:<?php
// Show all information, defaults to INFO_ALL
phpinfo();// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);?>
And… LO and BEHOLD… my host had disabled the “extension_loaded” thingy, command, whatever! SO… it WAS NOT mysql that caused the installation to die… it was extension_loaded!! And extension_loaded was clearly put in there to prevent install errors (or troubleshoot) for those w/out mysql extensions.
I believe they call this irony… Anyway… I hope this helps. (I deleted that line from wp-settings.php and I’m up & running, baby!)
- The topic ‘Missing MySQL Error – a possible fix for those who are on hosted accts’ is closed to new replies.