• Up till this morning my wordpress blog was working fine.

    All of a sudden it’s not failing to connect to the MySQL Database.

    I’ve checked all the information is correct even moved the database into a new db name and user and it still wont connect back up.

    WordPress can connect if there is nothing in the database but won’t connect as soon as the database is re-imported. I’ve not touched my wordpress site at all in the last 24 hours so I’m confused as to why it’s randomly stopped working.

    any one have any ideas at all?

Viewing 15 replies - 1 through 15 (of 16 total)
  • you need to check with host see if they problem with Mysql server as your website working fine and with out you making any changes is most likely you have server problem.

    Thread Starter willas00

    (@willas00)

    Server is working fine. No other sites are effected using MySQL under the same user and other users on the server.

    recheck your database info in wp-config.php as that is only file that connects to database.

    Thread Starter willas00

    (@willas00)

    I have as stated in my first post I’ve even created new database/user and re-imported.

    Setting up WP to connect to an empty DB works fine but as soon as I import my current database it stops connecting so it sounds to me like the MySQL file has an issue.

    Do you get “Error Connecting to Database”? If so, open wp-includes/wp-db.php and after the line

    if(!$this->dbh) {

    add this:

    echo(mysql_error());

    That will display your true error

    Thread Starter willas00

    (@willas00)

    I get Error establishing a database connection

    Did what you said nothing has come up to show what’s wrong

    @danhgilmore: Stop advising people to edit core files. You should never, ever, edit core files. And you never echo a mysql error to the screen!

    Thread Starter willas00

    (@willas00)

    @esmi removed the echo after what you said didnt work though.

    I’m looking in my error logs and every time someone goes on the website it comes up in the error logs

    [06-Oct-2011 19:06:10] PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so’ – /usr/local/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0

    Would that cause a problem?

    @esmi – chill out, please.

    @willas00 – ffmpeg.so, IIRC, is the PHP extension for an FLV media player. That error is a PHP error, not a WordPress error. If you have access to the PHP.INI file you can comment that out. If you don’t have access, contact your host.

    Thread Starter willas00

    (@willas00)

    Okay,

    Nothing else in the error logs and the echo brings nothing up on the page any other suggestions?

    chill out, please

    No – not when you are giving out bad advice to people who may not have the technical, or security, know-how to understand the implications.

    Up till this morning my wordpress blog was working fine.

    All of a sudden it’s not failing to connect to the MySQL Database.

    Have you asked your web host if they messed around with anything on the server?

    Thread Starter willas00

    (@willas00)

    It’s my own vps so nothing has changed. I have other wordpress sites connecting to database from the same cPanel account without no issues this is the only one thats randomly stopped.

    You’ll have to ask your webhost. Even if they’ve done something like a routine update to the entire box, something could have been hosed specific to that db, and they have tool sot be able to go tell.

    Thread Starter willas00

    (@willas00)

    Ok I’ve passed it onto them.

    I know last night the server stopped responding and had to be rebooted but all came up fine. Then this morning Internal Server Error 500 was appearing randomly my host said he did an fsck and it all came up fine appart from my blog which is having this problem now…

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘WordPress stopped connecting’ is closed to new replies.