Support » Installing WordPress » installation doesnt recognise mySQL

  • I am running XP Pro and I have these installed:
    Apache 2.0.54
    PHP 5.0.5 (as apache module)
    MySQL 5.0.15

    When I access the install file through
    http://localhost/wordpress/wp-admin/install.php
    I get “Your PHP installation appears to be missing the MySQL which is required for WordPress.”

    If I try to access the file from explorer I get:
    “wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn’t work for all server setups. The safest way is to manually create the file.”); require_once(‘../wp-config.php’); require_once(‘./upgrade-functions.php’); $guessurl = str_replace(‘/wp-admin/install.php?step=2’, ”, ‘http://’ . $_SERVER[‘HTTP_HOST’] . dirname($_SERVER[‘PHP_SELF’]) ); if (isset($_GET[‘step’])) $step = $_GET[‘step’]; else $step = 0; header( ‘Content-Type: text/html; charset=utf-8’ ); ?> “

    MySQL is running, PHP is running. I don’t get it 🙁

Viewing 6 replies - 1 through 6 (of 6 total)
  • Setting up a server is not really a WordPress specific question, you should ask in the forums for the software you are using.
    However, many people went the easy way and installed XAMPP from http://www.apachefriends.org/en/index.html for running WP locally.
    Good luck!

    Right now, the 5+ versions of mysql and php seem to be causing heartburn. Best thing to do for the moment is access the link from apachefriends to the earlier distros on sourceforge. I’m using 1.4.16 locally, which is working beautifully. I do have the 1.5 XAMPP distro ready to install (includes the 5+ versions mentioned), but have been buried by the space cadet web client from hell, so it’s not done yet….

    Thread Starter contrath

    (@contrath)

    sorry moshu, but i wasnt asking for help setting up the server, which worked fine. anyways, I went back and reinstalled php and mysql with the earlier versions (minus a couple hitches here and there, it’s working now). But now I get a different error, although a little more promising (which leads me to believe the biggest problem was indeed the newer versions):
    Error establishing a database connection

    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.

    I know mySQL is up and running. I made a database with the name wordpress. I’ve tried it with root and the corresponding password and tried creating a wordpress user with a corresponding password, but either way, it fails to recognise the service.

    Anyways, thanks for the help. I’ll keep at it and if I manage to get it working, I’ll post the solution on here.

    If it’s running it’s OK.
    Unfortunately, the code gibberish quoted in your first post showed clearly your PHP was NOT running. And that’s a server setup issue. The present situation tells me (based on 99% of past cases when the user insisted “everyhting is running”…) probably your PHP and MySQL “don’t talk to each other”.
    I wish I could help more, but we really know more about WP issues than how to set up a local server.

    Thread Starter contrath

    (@contrath)

    okay I got it running. Please let me clarify a couple points moshu… I totally appreciate your help, and I’ve dug through a lot of old posts looking BEFORE I posted my own to try and minimize my stupidity in this (which I’m completely new to). The gibberish in my original post was simply an error on my part: trying to access the file through my file explorer instead of through my web server, which was why PHP didn’t work. (In other words, just ignore the gibberish part, cus I was bein dumb)
    The solution to the original problem was the new versions of php and mysql (whichever one it was, I don’t know because I changed them both at the same time). Simply downgrading them fixed the error: “Your PHP installation appears to be missing the MySQL which is required for WordPress.”

    As far as the “Error establishing a database connection”, I found the solution here:
    a href="http://forums.mysql.com/read.php?11,6400,6701#msg-6701"http://forums.mysql.com/read.php?11,6400,6701#msg-6701/a

    which basically said to use this function:
    SET PASSWORD FOR ‘user’@’host’ = OLD_PASSWORD(‘password’);

    so for me it was: SET PASSWORD FOR wordpress@localhost = OLD_PASSWORD(‘password’);

    I have no idea what this did, but it works now. Thanks again for both of your help, it’s very much appreciated.

    Thread Starter contrath

    (@contrath)

    huh, apparently i dont get the whole code in the backticks thing… lets try posting that link again

    http://forums.mysql.com/read.php?11,6400,6701#msg-6701

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘installation doesnt recognise mySQL’ is closed to new replies.