Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2010, 10:31 AM
pdiscus pdiscus is offline
 
Join Date: Oct 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default help me about this message : Database error

hi

help me about this message : Database error :

Code:
Database error in vBulletin 4.0.6:

Invalid SQL:
INSERT INTO cpsession (userid, hash, dateline) VALUES (1, '51904b545819a51ecf1f9932e06883dc', 1284204182);

MySQL Error   : INSERT command denied to user '************' for table 'cpsession'
Error Number  : 1142
Request Date  : Saturday, September 11th 2010 @ 07:23:02 AM
Error Date    : Saturday, September 11th 2010 @ 07:23:02 AM
Script        : http://www.mysite.com/login.php?do=login
Referrer      : http://www.mysite.com/admincp/
IP Address    : 89.165.19.78
Username      : admin
Classname     : vB_Database
MySQL Version : 5.1.49-1
Thanks
Reply With Quote
  #2  
Old 09-11-2010, 11:13 AM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pdiscus View Post
hi

help me about this message : Database error :

Code:
Database error in vBulletin 4.0.6:

Invalid SQL:
INSERT INTO cpsession (userid, hash, dateline) VALUES (1, '51904b545819a51ecf1f9932e06883dc', 1284204182);

MySQL Error   : INSERT command denied to user '************' for table 'cpsession'
Error Number  : 1142
Request Date  : Saturday, September 11th 2010 @ 07:23:02 AM
Error Date    : Saturday, September 11th 2010 @ 07:23:02 AM
Script        : http://www.mysite.com/login.php?do=login
Referrer      : http://www.mysite.com/admincp/
IP Address    : 89.165.19.78
Username      : admin
Classname     : vB_Database
MySQL Version : 5.1.49-1
Thanks
It looks like your db user hasn''t the permission to execute the INSERT command at the db that he is assigned to. You can change that at the MySQL area at the CP of your host by granting the db user full permissions/access to the db. Failed that you can run this query to do it manually:

Code:
GRANT *
ON dbname.*
TO dbuser@"%"
identified by "dbpassword";
And replace the dbname, dbuser and dbpassword according with your own db name, db user and db password. The asteric appended tot eh db name will replace the entire list of tables where the sql command can take affect and the % symbol replaces the list of all hosts in the known world. That will work 100%. I have used in on several occasions and it has never failed me. Hope it helps you as well.
Reply With Quote
  #3  
Old 09-11-2010, 11:34 AM
pdiscus pdiscus is offline
 
Join Date: Oct 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi . .
Thank You . . .

Please give me more explanation if possible . Where should I go to Cpanel ? Where is the ( GRANT ) ?
Reply With Quote
  #4  
Old 09-11-2010, 11:36 AM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pdiscus View Post
Hi . .
Thank You . . .

Please give me more explanation if possible . Where should I go to Cpanel ? Where is the ( GRANT ) ?
You should go at the MySQL area and there you can assign the db user the permissions and access to the db that he is assigned to.
Reply With Quote
  #5  
Old 09-11-2010, 11:56 AM
pdiscus pdiscus is offline
 
Join Date: Oct 2009
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry . . .

get into the PHPmyadmin but I do not know where to go . . . Please give me more explanation if possible .

Thanak you
Reply With Quote
  #6  
Old 09-13-2010, 02:14 AM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A quick search on vb.com on 'cpsession' leads me to ask if you have any mods like vbseo installed. If so, you need to take the problem over there.
Reply With Quote
  #7  
Old 09-15-2010, 01:43 AM
compwhizii compwhizii is offline
 
Join Date: Aug 2009
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Videx View Post
A quick search on vb.com on 'cpsession' leads me to ask if you have any mods like vbseo installed. If so, you need to take the problem over there.
It's clearly a permissions error.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:10 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04208 seconds
  • Memory Usage 2,218KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete