Could not connect to the database. Verify that username and password are corr...

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
Alistair
New Member
New Member
Posts: 9
Joined: Mon Nov 16, 2009 7:54 am

Could not connect to the database. Verify that username and password are corr...

Post by Alistair »

Keep getting the same message despite repeating the entire installation process three times "Could not connect to the database. Verify that username and password are correct, and that the user has access to the given database."

My database is called "cms" and I know for certain the password is correct. I followed step by step the instructions for the installation for Local Windows PC:
http://wiki.cmsmadesimple.org/index.php ... Windows_PC
still no luck.

Can anybody actually help?
Attachments
Snap4.jpg
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Could not connect to the database. Verify that username and password are corr...

Post by jmcgin51 »

if you are certain that your database name and password match (case-sensitive), check the database server name.  If that is also correct, then make sure your database server is running, and that your database user has appropriate permissions for the database you're trying to reach.
Alistair
New Member
New Member
Posts: 9
Joined: Mon Nov 16, 2009 7:54 am

Re: Could not connect to the database. Verify that username and password are cor

Post by Alistair »

wow, I finally found what I did wrong, thanks!

but I think there's a little difference from what the instructions said and what I did, while on the instructions it says
-->> Fill in your "Admin Account Information". Fill in whatever you want, as long as you remember it. Don't check the "E-Mail Account Information" checkbox. Click "Continue".

I didn't fill in with my username but with root and bingo!
Attachments
Snap5.jpg
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Could not connect to the database. Verify that username and password are corr...

Post by jmcgin51 »

These are two completely separate issues.

In your first post, you were trying to connect to the database.  To connect to the database, you must have the correct database server/path entered, as well as a username and password for a user with permissions to that database.  This info is stored in the config.php file, so you never have to worry about it again unless the db connection details change (move to a new host, change password, etc.)

In your followup, you are creating your administrative account for the content management system.  This is separate from the database.  This information is stored in the database (password is encrypted).

You log in to the CMS admin panel, which automatically and transparently opens a connection to the database based on the credentials you supplied in the install.  You then manage the db content via the admin panel (page content, UDTs, GCBs, CSS, etc.)
dcleckley
Forum Members
Forum Members
Posts: 127
Joined: Fri Mar 06, 2009 2:13 pm

Re: Could not connect to the database. Verify that username and password are corr...

Post by dcleckley »

Place solved in the subject line of the very first post by modifying the post, not by replying.  Thanks.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Could not connect to the database. Verify that username and password are corr...

Post by Rolf »

dcleckley wrote: Place solved in the subject line of the very first post by modifying the post, not by replying.  Thanks.
The poster in question isn't the poster of the first post!

@ Alistair
If the solution mentioned by spider1118 solves your problem, please put solved in the title of the first post!

Regards, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Locked

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