Go Back   Web Server Hosting Forum by BODHost > Support > MySQL Issues.
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-24-07, 07:11
BOD Member
 
Join Date: Jul 2007
Posts: 128
Default SQL Error

When I am trying to post a message on my board and I get this:

General Error
SQL ERROR [ mysqli ]

MySQL server has gone away [2006]

SQL

SELECT topic_type, forum_id FROM phpbb_topics WHERE topic_id = 0

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 143
CALL: dbal->sql_error()

FILE: posting.php
LINE: 872
CALL: dbal_mysqli->sql_query()

I don't know how to solve this problem.Please help
Reply With Quote
  #2 (permalink)  
Old 10-25-07, 10:50
BOD Member
 
Join Date: Oct 2007
Posts: 34
Default

You may face this problem MySQL connection being terminated due to it being idle longer than 45 seconds(According to setting in my.cnf) this may be because of poor script design.

Generally script are designed such way while posting it preparing the data to be inserted and then make connection to database hosted on the server. But it seems that script used by your site is connect to the database before preparing the data to be inserted. And so whole process take more than 45 sec (According to setting in my.cnf). So either increase the limit in my.cnf or resolve it by making modification in the script.

Glenn
Reply With Quote
  #3 (permalink)  
Old 10-25-07, 11:34
BOD Member
 
Join Date: Nov 2005
Location: New Mexico
Posts: 273
Default

Guys,

Even i have been facing the some SQL error on my forum :

rror in posting

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1172317260, 15, 0, 0, 0)' at line 1

INSERT INTO thaiwahn_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('Euer Delitant', , 1172317260, 15, 0, 0, 0)

Line : 228
File : functions_post.php

Error in posting

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1172312402, 15, 0, 0, 0)' at line 1

INSERT INTO thaiwahn_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('Seitenzahlen', , 1172312402, 15, 0, 0, 0)

Line : 228
File : functions_post.php

Please advice :(
Reply With Quote
  #4 (permalink)  
Old 10-26-07, 07:23
BOD Member
 
Join Date: Jul 2007
Posts: 128
Default

Quote:
Originally Posted by glenn View Post
You may face this problem MySQL connection being terminated due to it being idle longer than 45 seconds(According to setting in my.cnf) this may be because of poor script design.

Generally script are designed such way while posting it preparing the data to be inserted and then make connection to database hosted on the server. But it seems that script used by your site is connect to the database before preparing the data to be inserted. And so whole process take more than 45 sec (According to setting in my.cnf). So either increase the limit in my.cnf or resolve it by making modification in the script.

Glenn

I have modified the script and now it start working thanks glenn.
Reply With Quote
  #5 (permalink)  
Old 10-29-07, 07:48
BOD Member
 
Join Date: Oct 2007
Posts: 34
Default

Quote:
Originally Posted by Christina View Post
Guys,

Even i have been facing the some SQL error on my forum :

rror in posting

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1172317260, 15, 0, 0, 0)' at line 1

INSERT INTO thaiwahn_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('Euer Delitant', , 1172317260, 15, 0, 0, 0)

Line : 228
File : functions_post.php

Error in posting

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' 1172312402, 15, 0, 0, 0)' at line 1

INSERT INTO thaiwahn_topics (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type, topic_vote) VALUES ('Seitenzahlen', , 1172312402, 15, 0, 0, 0)

Line : 228
File : functions_post.php

Please advice :(

It seems problem of mysql version conflict. Means script developed for a version mysql 4.X.X and is being used for mysql 4.Y.Y . So you need to make the changes in the script according to the version of mysql which is used to run this script.


Glenn.
Reply With Quote
  #6 (permalink)  
Old 10-29-07, 11:03
BodShane's Avatar
Chief Operating Officer
 
Join Date: Dec 2006
Posts: 1,087
Send a message via AIM to BodShane Send a message via MSN to BodShane
Default

Perhaps, you may have to attempt it now. Check in with the versions and let us know if it has worked.
__________________
Redundant Dedicated Server Hosting Solutions Only at BODHost
24x7 Toll-Free ph. : +1. 866-662-0909
Email : sales@bodhost.com | MSN : sales@bodhost.com
Reply With Quote
  #7 (permalink)  
Old 10-30-07, 06:01
BOD Member
 
Join Date: Nov 2005
Location: New Mexico
Posts: 273
Default

Quote:
Originally Posted by Admin View Post
Perhaps, you may have to attempt it now. Check in with the versions and let us know if it has worked.
Thanks for your reply.

I will check it and let you know soon.
Reply With Quote
  #8 (permalink)  
Old 10-30-07, 08:39
BodShane's Avatar
Chief Operating Officer
 
Join Date: Dec 2006
Posts: 1,087
Send a message via AIM to BodShane Send a message via MSN to BodShane
Default

Your welcome. We will await for the updates from your end.
__________________
Redundant Dedicated Server Hosting Solutions Only at BODHost
24x7 Toll-Free ph. : +1. 866-662-0909
Email : sales@bodhost.com | MSN : sales@bodhost.com
Reply With Quote
  #9 (permalink)  
Old 11-03-07, 06:12
BOD Member
 
Join Date: Nov 2005
Location: New Mexico
Posts: 273
Default

Thanks Glenn,
I had made the changes in the script according to the version and now it is working fine.
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 23:19.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.