Forums

Error connecting to database (2 posts)

  1. Whichrtmej
    Member
    Posted 8 months ago #

    Hi, i'm new to wordpress and I am haveing a problem with my database connection. I have setup WordPress on my local machine and everything is working fine. I have created a blog and it is working fine. I have my blog in an iframe in a dreamweaver project. When I run it it come up just the way I want it to.

    Once I was satisfied with my blog I went into admin -> general setting and changed my wordpress address and site address to my online address eg: http://www.mysite.com/blog.
    I then went in to wp-config.php and change my database username and password and host info.

    Once this was all done I loaded my website and went to my blog. Nothing. So I went to http://www.mysite.com/blog/wp-admin/admin.php and it get "Error establishing a databse connection" I have checked my settings in my wp-config.php and all are correct and I can't log-in to check my settings in admin.

    What have I missed?
    Thanks in advance for your help.

    Whichrtmej

  2. govpatel
    Member
    Posted 8 months ago #

    check with your your host waht you need to use DB_host as in local install you used localhost and some host use url

Reply

You must log in to post.

About this Topic