Cannot connect to database

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
EoinDubh
Forum Members
Forum Members
Posts: 34
Joined: Sun Feb 28, 2010 12:52 am

Cannot connect to database

Post by EoinDubh »

I am migrating a site to CMSMS 1.82. It is a fairly complex site given that there is a main site with several regional sub sites. I have built the main site and 2 sub sites with no problems but I connect to the database when trying to install the rest.

Each sub site has a different database and I created a list of usernames and passwords before I started that match the format of the name and password for the main site. I can go to the ISPs Control Panel and log into the databases using these credentials. When I try to do the install, I get no errors until I get to the database install. Using the same credentials that work in the Control Panel I get a bad username or password error. I checked with the ISP and I should be using localhost with the MySQL default port, which I am. The tech support guy placed a test PHP file in the install directory that I edited to add the credentials and it connects OK. But the install constantly fails.

Any ideas?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Cannot connect to database

Post by Dr.CSS »

By migrating do you mean upgrading an older version to 1.8.2?...

If so you should be able to just run /install/upgrade.php...

If you mean moving a site you need to check that you are giving the correct name in the DB info field, every site I've moved, DB wise, always resulted in a new name for the DB...
Locked

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