Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > General Hosting/Server Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MySQL Errors Details »»
MySQL Errors
Version: , by kansei kansei is offline
Developer Last Online: Jan 2010 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 12-03-2007 Last Update: Never Installs: 0
 
No support by the author.

I'm very new to vbulletin admin stuff (i.e. just started this past week) and am trying to eliminate some mysql errors I've been getting (I get e-mailed this same error about 30x a day).
-----------------------------------------------------
Here's the basic config:
Server Type Linux
Web Server Apache v1.3.37 (cgi-fcgi)
PHP 4.4.7
PHP Max Post Size 8.00 MB
PHP Maximum Upload Size 2.00 MB
MySQL Version 4.0.27-standard
MySQL Packet Size 16.00 MB
-------------------------------------------------------

The server was set up a few days before I came on board to start the site so I didn't question the use of MySQL 4 instead of 5. From my experience with MySQL this error (below) that I'm receiving is related to using 4.0 and should be fixed in 4.1.

I'm 90% sure my sftp credentials for the site give me full shell access but to tell the truth, I don't know the hosting situation at all so I'd have to get back to you guys on that if more info is needed. If a mysql upgrade will fix it, I'll go through with that (unless it's some weird hosting situation and we can't at all).

Here's the e-mail I keep getting --feel free to probe the site to try and provoke the errors if you want. The only time I myself have been able to trigger the error is with the 'googlemaps me' mod which is disabled until I sort this out. The errors were going on back with 3.5... whatever it was, and I just upgraded to 3.6.8 patch level 2 last night.

Database error in vBulletin 3.6.8:

Invalid SQL:
SET NAMES 'utf8';

MySQL Error : Unknown system variable 'NAMES'
Error Number : 1193
Date : Monday, December 3rd 2007 @ 09:15:43 AM
Script : http://www.themazdaforum.com/cron.php?&rand=303382
Referrer : http://www.themazdaforum.com/
IP Address : 71.252.26.64
Username : Unregistered
Classname : vb_database

I could force utf8 for everything which in theory should fix it but of course.. drawbacks. It's an english language site right now but any members are free to speak whatever language they want and are free to use whatever characters they want.

Any pointers?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-03-2007, 08:52 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you upgrade googlemap_me to the latest version seeing as you upgraded the forum to 3.6.x?

This was probably a bug back in the older version of googlemap_me
Reply With Quote
  #3  
Old 12-03-2007, 09:50 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As you pretty much said yourself - the SET NAMES command is only available in MySQL 4.1 and above - so you will always get that error running while 4.0.27
Reply With Quote
  #4  
Old 12-04-2007, 02:25 AM
kansei kansei is offline
 
Join Date: Nov 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
Did you upgrade googlemap_me to the latest version seeing as you upgraded the forum to 3.6.x?

This was probably a bug back in the older version of googlemap_me
It was the latest version of google maps. --that being said, it is disabled (or uninstalled.. I think I uninstalled it this morning trying to get rid of the flood of error e-mails to my phone ).

The errrors are showing up on all sorts of other pages. I was pretty sure I read requirements and 4.0.27 was above the minimum. I guess it's time to look into upgrading.

thanks guys! I'll let you know what fixes it.
Reply With Quote
  #5  
Old 12-04-2007, 06:29 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your config.php file, what do you have for the following line:

PHP Code:
// $config['Mysqli']['charset'] = 'utf8'; 
?

If that line is uncommented, please comment it again.
Reply With Quote
  #6  
Old 12-04-2007, 01:10 PM
kansei kansei is offline
 
Join Date: Nov 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All the mysqli stuff is commented out.

This is the next uncommented line:
$config['Mysqli']['ini_file'] = '';

the only two lines after that are image processing max dimensions stuff.
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 05:08 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.04351 seconds
  • Memory Usage 2,252KB
  • Queries Executed 21 (?)
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)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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