dbTalk Databases Forums  

Re: mysql upgrade kills a working web page

comp.databases.mysql comp.databases.mysql


Discuss Re: mysql upgrade kills a working web page in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jerry Stuckle
 
Posts: n/a

Default Re: mysql upgrade kills a working web page - 01-08-2012 , 09:07 PM






On 1/8/2012 9:05 PM, horus wrote:
Quote:
original mysql Ver 14.7 Distrib 4.1.22, for pc-linux-gnu (i686) using
readline 4.3
php = PHP 5.3.8 (cli) (built: Nov 15 2011 16:44:23)

new mysql version Ver 14.14 Distrib 5.1.54, for debian-linux-gnu (x86_64)
using readline 6.2

================================================== ========================================
snip over 400 lines of code
web error message:

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 'trigger=511235,
grb_id='GRB 120106A', burst_ra='04:24:31', `burst_dec`='64:01:42' at line 1

HELP!


thanks ahead of time.

dmc


Please don't post all that code. No one here is going to spend time
looking though it. We're all volunteers, after all.

Find out the failing SQL statement and post the actual SQL being used as
well as your CREATE TABLE for the table in question.

And when you upgraded, did you follow all the steps in the upgrade
instructions?


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex (AT) attglobal (DOT) net
==================

Reply With Quote
  #2  
Old   
Gordon Burditt
 
Posts: n/a

Default Re: mysql upgrade kills a working web page - 01-09-2012 , 12:41 AM






Quote:
web error message:

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 'trigger=511235,
grb_id='GRB 120106A', burst_ra='04:24:31', `burst_dec`='64:01:42' at line 1

HELP!
I'm going to guess here that 'trigger' is now a keyword and that column
name either needs to be changed, or used as `trigger` (note backquotes,
not single quotes) in queries.

New keywords are not uncommon in new versions of MySQL.

Reply With Quote
  #3  
Old   
The Natural Philosopher
 
Posts: n/a

Default Re: mysql upgrade kills a working web page - 01-09-2012 , 06:14 AM



horus wrote:

Quote:
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 'trigger=511235,
grb_id='GRB 120106A', burst_ra='04:24:31', `burst_dec`='64:01:42' at line 1

HELP!

My guess is that you have lost 'magic quotes' as a default setting and
the old code relies on it.

Same happened to me.. had to re-enable it and then undo what it was
doing to the never code..



Quote:
thanks ahead of time.

dmc


Reply With Quote
  #4  
Old   
horus
 
Posts: n/a

Default Re: mysql upgrade kills a working web page - 01-09-2012 , 09:36 AM



"Gordon Burditt" <gordonb.drnbz (AT) burditt (DOT) org> wrote

Quote:
web error message:

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
'trigger=511235,
grb_id='GRB 120106A', burst_ra='04:24:31', `burst_dec`='64:01:42' at line
1

HELP!

I'm going to guess here that 'trigger' is now a keyword and that column
name either needs to be changed, or used as `trigger` (note backquotes,
not single quotes) in queries.

New keywords are not uncommon in new versions of MySQL.
backquotes did the trick\

thanks everyone!

-david

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.