Advertisement:

Author Topic: "Can not connect to the database. Check if the user has privileges."  (Read 5693 times)

twilvaro

  • Newbie
  • *
  • Posts: 4
I come here because I have browsed and read possible solutions to my problem but none have worked.

When entering data in my database (host, db name, username and password) correctly I get the following error:

Code: [Select]
Can not connect to the database. Check if the user has privileges.
I manually configured the config.php, I deleted the config.php, I've given 666 permissions, I've done since the automatic configuration, proven time and again the data from the db (you are correct because when the bad insert changes the error-check the data type of the host or user name-) and nothing ... keeps coming out the same.

See if anyone knows how I can be at fault (which is safe) Perhaps 1and1 host?

Regards and thanks in advance.

lsikora

  • Newbie
  • *
  • Posts: 9
Re: "Can not connect to the database. Check if the user has privileges."
« Reply #1 on: August 16, 2012, 03:16:49 am »
I'm having the same problem. I tried going through my webhost's control panel and creating the database ..._"osclass" and granting all permissions with and without a username and password and running the install.php again and again and again. Nothing works. I also saw a post where a writer suggested commenting out the 4 lines of code in the install.php code beginning with "case 1".

I tried that with the same scenerios described above over and over and over and over and still no luck. I am at my wits end and about to give up.

Is there any way to place the files manually without going through the install.php script? I'm not the only one with these problems. Can anyone help?

classi

  • Newbie
  • *
  • Posts: 8
Re: "Can not connect to the database. Check if the user has privileges."
« Reply #2 on: August 25, 2012, 08:07:12 am »

i solved this by change the HOST into 127.0.0.1

take a look the pict here
http://forums.osclass.org/installation-update-help/(solved)-cannot-connect-to-the-database-check-if-the-user-has-privileges/

hopefully this could help you.