bookmark - Error Connecting To Database [solved]

Error Connecting To Database [solved]

 
 Discussion by Illustrious with 5 Replies.
 Last Update: December 21, 2010, 11:24 pm
 
bookmark - Error Connecting To Database [solved]  
    
free web hosting
 
I installed wordpress on my website and I get an error when I try to access the page with my blog. I have edited the wp-config.php file accordingly but it still gives me the "Error Connecting to Database" error.

In my wp-config.php file, I have:

CODE

/** The name of the database for WordPress */
define('DB_NAME', '********_databasename');

/** MySQL database username */
define('DB_USER', '********_user');

/** MySQL database password */
define('DB_PASSWORD', 'MySQLuserPass');

/** MySQL hostname */
define('DB_HOST', 'localhost');


I already created a user and a database for WordPress, added the user to the database and added permissions to access the database. I don't know why it is not working for me. Another site I looked at said that capitalizing the "L" in localhost might solve the problem but that did not work for me.

Sun Dec 19, 2010    Reply    New Discussion   


I am not sure that's the case here, but some webhosts have a configuration where localhost does not work for a database host. In some weird cases even changing it to 127.0.0.1 which is basically the same worked.
I wonder how it's sorted out here at Astahost though.

Sun Dec 19, 2010    Reply    New Discussion   

QUOTE (Qrntz)

I am not sure that's the case here, but some webhosts have a configuration where localhost does not work for a database host. In some weird cases even changing it to 127.0.0.1 which is basically the same worked.
I wonder how it's sorted out here at Astahost though.
Link: view Post: 150940

Here at astahost it's simply localhost.

Mon Dec 20, 2010    Reply    New Discussion   

When you're hosting on local server which you're right now because you uploaded files to this server then you've to enter 'localhost'. For network drives and multiple installation from single install you need to enter the name or IP of the host. Don't bother about it for now and just enter 'localhost'.

I don't know why you're manually installing wordpress because you can install 2 update back of wordpress. Besides that most of the asta and computinghost has new update for wordpress released. Now just install this upgraded from fantastico and in future upgrade from your dashboard.

If you fail to upgrade from dashboard then simply install using 'wordpress automatic upgrade' plugin that is in repository.

Mon Dec 20, 2010    Reply    New Discussion   


QUOTE (starscream)

When you're hosting on local server which you're right now because you uploaded files to this server then you've to enter 'localhost'. For network drives and multiple installation from single install you need to enter the name or IP of the host. Don't bother about it for now and just enter 'localhost'.

I don't know why you're manually installing wordpress because you can install 2 update back of wordpress. Besides that most of the asta and computinghost has new update for wordpress released. Now just install this upgraded from fantastico and in future upgrade from your dashboard.

If you fail to upgrade from dashboard then simply install using 'wordpress automatic upgrade' plugin that is in repository.
Link: view Post: 150952


Wow. I did not know that I could install WordPress automatically. I still haven't been able to fix the "Error connecting to database" error but my blog seemed to be working perfectly after I used this method. Thanks! :P

Tue Dec 21, 2010    Reply    New Discussion   

Sometimes this "error connecting to database" can happen because of server down. But I guess this might not be the reason because we are not in "free-package" with ASTA.

Tue Dec 21, 2010    Reply    New Discussion   

Quickly Post to Error Connecting To Database [solved]  w/o signup Share Info about Error Connecting To Database [solved]  using Facebook, Twitter etc. email your friend about Error Connecting To Database [solved] Print
Reply / Comment Ask a Question? Share / Bookmark E-Mail a Friend Print

Not Working Plugins   Not Working Plugins (2) (3) Too Much Resource Using By Wordpress Site   Too Much Resource Using By Wordpress Site