Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Can't connect to database...  (Read 3393 times)

0 Members and 1 Guest are viewing this topic.

adaytay

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Can't connect to database...
« on: October 24, 2005, 11:13:23 am »

Hi all,

Following on from my other recent post, I've hit another problem after amending the config file.

I get the following error:
Code: [Select]
While executing query "SELECT user_id, username as user_name, user_level FROM `forum`.phpbb_users WHERE user_id='3' AND user_password='4fb9b3f605b60767ad9ce2c0e6288094' AND user_active='1'" on 0

mySQL error: SELECT command denied to user: 'mcknight_mcknigh@localhost' for table 'phpbb_users'

I've checked in phpMyAdmin and user 3 has definitely got the correct password, so no problems there, I'm just a little confuddled as to why I've got no access to run the file, I've checked the permissions and the user mcknight@mcknigh@localhost has full access to the database?

Any ideas?  PLEASE tell me I don't have to reinstall....
« Last Edit: October 24, 2005, 12:33:05 pm by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Can't connect to database...
« Reply #1 on: October 24, 2005, 11:27:15 am »

The mySQL user doesn't have the necesarry permissions. If you have something like cpanel, you should modify the permissions for your mySQL user there. The user needs CREATE TABLE, ALTER, INSERT, UPDATE, SELECT, DELETE permissions. If your webhost doesn't provide you with an interface to change the permissions for the mySQL user, ask them to change this for you.
Logged

adaytay

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Can't connect to database...
« Reply #2 on: October 24, 2005, 11:30:39 am »

Thanks GauGau,

I've double-checked and triple-checked the settings, (I have cPanel), and the user has all permissions.  As mentioned in a previous post, CPG is bridged via phpBB, and the phpBB install on the same db works with no problems whatsoever?

Anything else it could be?

Cheers,

Ad
Logged

adaytay

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Can't connect to database...
« Reply #3 on: October 24, 2005, 11:59:09 am »

I missed the bridge file... database name was incorrect.

D'oh!!

Thanks for helping anyway :)
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.