• Greetings.
    WordPress was all sweetness & light last week. Has been working fine for 6 or more months. Perhaps a half-dozen entries or so.
    But today, I received the error:

    Error establishing a database connection

    when attempting to navigate to my blog: https://oldwithoutmoney.com/pubBlog/

    My (typically very responsive) host had this to say:
    1) I am getting an Internal Server Error (500) not a DB connection visiting that website which indicates a script issue.
    2) Check that all permissions on the php are 644 and direcroties are 755. Also that the files are all owned by your user

    So — can anyone advise of the recommended steps to take? I can log in and administer my site, but I don’t know which directories are owned by WordPress.

    Thanks kindly.

    – Richard
    richard A T oldWithoutMoney dot c o m

Viewing 6 replies - 1 through 6 (of 6 total)
  • I am getting an Internal Server Error (500) not a DB connection visiting that website which indicates a script issue.

    Your host obviously did not even check.

    Log into you hosted site and check the db. Can you log into the db? If you can check your wp-config file. If you cannot then, someone has changed something with the db like would happen when a host moves servers around.

    Thread Starter expatcanuck

    (@expatcanuck)

    > Can you log into the db?

    How does one do this?

    I can access the cPanel MySQL Databases widget.
    The widget offers the options Delete, Check & Repair.

    Check & Repair give a clean bill of health.

    I can also access the database via the phpMyAdmin panel,
    and can see the comments, links, options, postmeta, posts, terms, term_relationships, term_taxonomy, usermeta & users tables (all prepended by wp_).

    I’ve also been able to export the text of the posts table using the phpMyAdmin export functionality.

    Attempts to access my blog still generate the error “Error establishing a database connection” (and that’s the complete error text).

    Suggested next steps? I’m not adverse to diagnostics & am eager to learn, if I can get some direction as to what to look for.

    When you access the db it should ask for a password. Check your config.php and compare the db name, password, etc.

    Thread Starter expatcanuck

    (@expatcanuck)

    figaro –

    Perfetto! — molto grazie!!
    Fixed the dbName, created a new user, & updated PHP admin.
    https://oldwithoutmoney.com/pubBlog/

    – Richard

    You’re welcome…glad you got it working.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error establishing a database connection’ is closed to new replies.