Page 1 of 1
Could not connect to the database. Verify that username and password are corr...
Posted: Mon Nov 16, 2009 3:26 pm
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?
Re: Could not connect to the database. Verify that username and password are corr...
Posted: Mon Nov 16, 2009 3:39 pm
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.
Re: Could not connect to the database. Verify that username and password are cor
Posted: Mon Nov 16, 2009 3:52 pm
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!
Re: Could not connect to the database. Verify that username and password are corr...
Posted: Mon Nov 16, 2009 4:29 pm
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.)
Re: Could not connect to the database. Verify that username and password are corr...
Posted: Sun Feb 14, 2010 7:58 pm
by dcleckley
Place solved in the subject line of the very first post by modifying the post, not by replying. Thanks.
Re: Could not connect to the database. Verify that username and password are corr...
Posted: Sun Feb 14, 2010 8:21 pm
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