Find the answer to your Linux question:
Results 1 to 5 of 5
currently i am using Fedora release 12 (Constantine) with mysql and apache server installed ,i also installed wordpress and tried to link mysql with wordpress but unable to do so. ...
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    20

    "error in database in connection" of wordpress with mysql server

    currently i am using Fedora release 12 (Constantine)
    with mysql and apache server installed ,i also installed wordpress and tried to link mysql with wordpress but unable to do so.

    what i tried ........
    1.i installed wordpress using :- yum install wordpress
    2.then i move /usr/share/wordpress folder to /var/www/html/ folder and
    used:

    service httpd start;
    service mysqld start;

    and in browser i write localhost/wordpress

    and it displayed

    "error in database connection"


    please help

  2. #2
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    Hi,
    you must configure your database autentification.

    rename wp-config-sample.php to wp-config.php and config it:
    define('DB_NAME', ‘wp_name');
    define('DB_USER', ‘username');
    define('DB_PASSWORD', ‘password');
    define('DB_HOST', ‘localhost');

    username must be a valid user of mysql...

    next step is to run http.//localhost/wp_name/wp-admin/install.php
    There are people trying to avoid mistakes and another that tries to target.

  3. #3
    Just Joined!
    Join Date
    Sep 2010
    Posts
    20
    thank you..........

    i started the httpd server and then Not Found

    The requested URL /wp_name/wp-admin/install.php was not found on this server.
    Apache/2.2.15 (Fedora) Server at localhost Port 80

    ERROR occured............

    plz exactly tell the steps .................. that how to do ...................

  4. #4
    Linux Newbie JosePF's Avatar
    Join Date
    Jun 2010
    Posts
    225
    Hi,
    sorry...
    /wp_name/wp-admin/install.php
    change wp_name for your wordpress name folder and make sure that have right permissions to open file install.php.
    You can open /var/www/html/"wordpress folder"/wp-admin/ and you should find install.php there.

    Then go to web browser to http://"wordpress folder"/wp-admin/install.php

    I hope this help you
    There are people trying to avoid mistakes and another that tries to target.

  5. #5
    Just Joined! Anspliff's Avatar
    Join Date
    Nov 2010
    Location
    Houston, Tx
    Posts
    35
    Did you create the database and add the user to that database? If so is the password correct? If all that information is correct and you are still gettin this error try verify that you are using "localhost" or the IP of the remote MySQL server.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...