[SOLVED] Can't connect to database on WHM/CPanel server

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

[SOLVED] Can't connect to database on WHM/CPanel server

Post by chillifish »

Trying to move a perfectly working site to my WHM server. When I have transferred files, imported database and changed config.php, I am greeted with the following message:
Fatal error: Attempt to connect to database chilli_frog on chilli_frog@localhost failed in /home/chilli/public_html/proof/frogmorefarm/lib/adodb.functions.php on line 61
When I try a fresh install of CMS Made Simple, I get the following error at step 5 of the install:
Could not connect to the database. Verify that username and password are correct, and that the user has access to the given database.
I have checked, double checked, triple checked, quadruple checked, changed, deleted and re-setup the database and user. phpMyAdmin can see, edit and browse the database fine.
Last edited by chillifish on Tue Feb 11, 2014 11:37 am, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Can't connect to database on WHM/CPanel server

Post by Rolf »

clear cache, delete all files in tmp/templates_c and tmp/cache folders
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
chillifish
Forum Members
Forum Members
Posts: 92
Joined: Wed Jul 27, 2011 9:26 am

Re: Can't connect to database on WHM/CPanel server

Post by chillifish »

Thank you, thank you, thank you. I've been tearing my hair out over this. Now working fine.
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

Re: [SOLVED] Can't connect to database on WHM/CPanel server

Post by burlington »

I am getting a similar sort of message viz:
<quote>
Database Connection Failed
Error: Access denied for user 'xxxx'@'213.171.218.116' (using password: YES) (1045)
Function Performed: CONNECT

Fatal error: Attempt to connect to database perfectday1 on perfectday1@88.208.244.124 failed in E:\domains\p\xxxx\user\htdocs\newsite\lib\adodb.functions.php on line 61
</quote>

I have cleared the files etc as recommended by Rolf but I still get the same message. I can't clear the cache via the admin. system as I can't get in. System worked fine 24 hours ago.

Can anyone help please?

Thanks

Martin
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: [SOLVED] Can't connect to database on WHM/CPanel server

Post by Jeff »

Please start a new topic, don't hijack an old solved topic.

Jeff
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

Re: [SOLVED] Can't connect to database on WHM/CPanel server

Post by burlington »

I think hijack is a shade strong. In any case, I DID start a new topic at http://forum.cmsmadesimple.org/viewtopi ... =3&t=71451
Locked

Return to “[locked] Installation, Setup and Upgrade”