Results 1 to 6 of 6

Thread: Error establishing a database connection in Wordpress

  1. #1
    Join Date
    Feb 2009
    Posts
    64

    Error establishing a database connection in Wordpress

    I am getting a following error message while establishing a database connection in WordPress -

    "Error establishing a database connection"

    why am I receiving this error ? does anyone know about this problem ?

    plz help....

  2. #2
    Join Date
    Apr 2008
    Posts
    4,642

    Re: Error establishing a database connection in Wordpress

    This is an installation error. To avoid/resolve this, you need to manually edit the database and change the domain and path settings.

  3. #3
    Join Date
    May 2008
    Posts
    4,570

    Re: Error establishing a database connection in Wordpress

    The MySQL concurrent connections is may have set too low. If there's a "bump" in the mysql service, then something may have changed for sure, which renders the settings in wp-config.php moot.

  4. #4
    Join Date
    May 2008
    Posts
    4,831

    Re: Error establishing a database connection in Wordpress

    Try running this query on mysql.

    SET PASSWORD FOR some_user@some_host = OLD_PASSWORD('your_old password_here');

    The database must have a wp_ something in its tables and database name

    now, look for the prefix that you had given while installing it. If its default, it should have a wp_yourdatabasename or wp_youtablename within our databases. If you go to phpmyadmin and look at the databases you will see that.

    Run the sql for that database.

  5. #5
    Join Date
    May 2008
    Posts
    4,345

    Re: Error establishing a database connection in Wordpress

    Check your host. Because, i think depending on the software running within the box, it may be adding (something like your username) to the name of the mysql-user or mysql-database.

  6. #6
    Join Date
    Aug 2007
    Posts
    1,098

    Customize WordPress Database Connection Error Page

    WordPress 2.0+ users can find the lines to edit within ‘/wp-includes/wp-db.php’. Beginning immediately below line 307, save the following:
    /* custom error page hack
    shows a custom error page and emails error instead of
    showing the default wordpress database error page */
    include('wp-content/themes/themename/dbase-error.php');
    $error = ( !$this->show_errors ) ? '' : $this->show_errors ;
    mail('admin@domain.com', 'WordPress Error', $error);
    die;
    /* end custom error page hack */
    default Wordpress database error pages are more important for website administrators or webmasters , you can change the error page to another different error page by modifying text in the error page by customizing the wp-db.php file located in wp-include directory.

Similar Threads

  1. Replies: 5
    Last Post: 01-05-2011, 10:50 AM
  2. Replies: 6
    Last Post: 10-05-2010, 09:15 AM
  3. Establishing internet connection in linux
    By Quattro in forum Operating Systems
    Replies: 5
    Last Post: 22-02-2010, 07:24 PM
  4. How to change wordpress database connection
    By Valerian in forum Networking & Security
    Replies: 3
    Last Post: 26-05-2009, 01:54 PM
  5. Windows 7 RC not establishing Internet connection?
    By MikeMoss in forum Windows Software
    Replies: 4
    Last Post: 26-05-2009, 02:24 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,708,728,134.46325 seconds with 17 queries