Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 06-15-2016, 03:52 PM
vinceg vinceg is offline
 
Join Date: Aug 2014
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default SQL Error 2

Hi All

Getting this SQL error after a server move, that username in the error isn't anything to do with the new DB. How can I fix?

atabase error in vBulletin 4.2.2:

Invalid SQL:

UPDATE cache
SET locktime = 1466012729
WHERE cacheid = 'vbcms_item_1_data';

MySQL Error : UPDATE command denied to user 'uv4_1010150_0001'@'linweb2.atlas.pipex.net' for table 'cache'
Error Number : 1142
Request Date : Wednesday, June 15th 2016 @ 06:45:29 PM
Error Date : Wednesday, June 15th 2016 @ 06:45:29 PM
Script : http://www.microlightforum.com/content.php
Referrer :
IP Address : 192.243.55.137
Username : Unregistered
Classname : vB_Database
MySQL Version :

Stack Trace:

#0 vB_Database->halt() called in [path]/includes/class_core.php on line 426
#1 vB_Database->execute_query() called in [path]/includes/class_core.php on line 444
#2 vB_Database->query_write() called in [path]/vb/cache/db.php on line 254
#3 vB_Cache_Db->lock() called in [path]/vb/cache.php on line 371
#4 vB_Cache->read() called in [path]/packages/vbcms/item/content.php on line 1038
#5 vBCms_Item_Content->loadCache() called in [path]/packages/vbcms/item/content.php on line 538
#6 vBCms_Item_Content->setItemId() called in [path]/vb/model.php on line 211
#7 vB_Model->__construct() called in [path]/vb/item/content.php on line 108
#8 vB_Item_Content->__construct() called in [path]/packages/vbcms/item/content.php on line 576
#9 vBCms_Item_Content->__construct() called in [path]/packages/vbcms/controller.php on line 119
#10 vBCms_Controller->initialize() called in [path]/packages/vbcms/controller/content.php on line 76
#11 vBCms_Controller_Content->initialize() called in [path]/packages/vbcms/controller.php on line 90
#12 vBCms_Controller->__construct() called in [path]/vb/router.php on line 678
#13 vB_Router::getActionController() called in [path]/packages/vbcms/route/content.php on line 87
#14 vBCms_Route_Content->getResponse() called in [path]/vb/router.php on line 251
#15 vB_Router::getResponse() called in [path]/vb/bootstrap.php on line 58
#16 require_once([path]/vb/bootstrap.php) called in [path]/content.php on line 30
Reply With Quote
  #2  
Old 06-15-2016, 03:56 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
MySQL Error : UPDATE command denied to user 'uv4_1010150_0001'@'linweb2.atlas.pipex.net' for table 'cache'
looks like the user for your DB doesn't have update permissions
Reply With Quote
  #3  
Old 06-15-2016, 05:10 PM
vinceg vinceg is offline
 
Join Date: Aug 2014
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is what I'm saying, it's references to the old DB on the OLD server.
Reply With Quote
  #4  
Old 06-15-2016, 05:12 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check that the mysql information in config.php is correct and corresponds to the server/database/user/password for the new server.
Reply With Quote
  #5  
Old 06-15-2016, 05:16 PM
vinceg vinceg is offline
 
Join Date: Aug 2014
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will check but surely it must be because the site is up?

--------------- Added [DATE]1466018458[/DATE] at [TIME]1466018458[/TIME] ---------------

Sorry, re-read what you said.

I have now added full path in config.php but still getting email errors sent.
Reply With Quote
  #6  
Old 06-15-2016, 05:22 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does VBCMS have a separate config?
Reply With Quote
  #7  
Old 06-15-2016, 05:25 PM
squidsk's Avatar
squidsk squidsk is offline
 
Join Date: Nov 2010
Posts: 969
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If that's the user from the error message then you have that set as the mysql user in config.php and that needs to be updated to the new user for the new server.
Reply With Quote
  #8  
Old 06-15-2016, 06:14 PM
vinceg vinceg is offline
 
Join Date: Aug 2014
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, the user is MYSQL the new server.

I can't see a config for vB CMS.

I'm out of ideas!
Reply With Quote
  #9  
Old 06-15-2016, 06:45 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure the error isn't coming from the old server? Have the files been deleted from the old server. That is about the only explanation.

No such thing as separate config.php for the CMS.
Reply With Quote
  #10  
Old 06-15-2016, 09:16 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Were you previously hosted with GoDaddy? If so look for these lines in the config.php:

Code:
	//	****** MASTER DATABASE SERVER NAME AND PORT ******
	//	This is the hostname or IP address and port of the database server.
	//	If you are unsure of what to put here, leave the default values.
	//
	//	Note: If you are using IIS 7+ and MySQL is on the same machine, you 
	//	need to use 127.0.0.1 instead of localhost
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 3306;

Is yours set to localhost as shown or is it set to linweb2.atlas.pipex.net?
  • If it's set to localhost then it's more than likely as Joe (BirdOfPrey) stated above.
  • If it's set to linweb2.atlas.pipex.net then simply change to localhost as shown in the code example AND ensure the new database name, database user+password are correct in the config.php file and re-upload to /includes/ then check.
Reply With Quote
Reply

Thread Tools
Display Modes

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 01:16 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.04411 seconds
  • Memory Usage 2,248KB
  • 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
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete