Welcome Guest ( Log In | Register )



 
Closed TopicStart new topic
> Mysql Error
plot
post Sep 17 2005, 07:08 AM
Post #1


Premium Member
Group Icon

Group: Members
Posts: 206
Joined: 4-September 05
Member No.: 8,310



Hey i got this error trying to install something on my database

CODE
mysql error: 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 'rpg_class`
(`name`, `folder`, `regatt`, `magicatt`, `magicdef`

mysql error number: 1064

can anyone tell me what this means or how i fix it?? thanks in advance
Go to the top of the page
 
+Quote Post
jipman
post Sep 17 2005, 09:14 AM
Post #2


Pretty please?
Group Icon

Group: Members
Posts: 733
Joined: 28-November 04
From: Holland
Member No.: 1,552



Post a bit of the php code for the query, or else we can't help you much. Probably you used the wrong quotes around rpg_class.
Go to the top of the page
 
+Quote Post
Houdini
post Sep 17 2005, 09:17 AM
Post #3


Super Member
Group Icon

Group: Members
Posts: 572
Joined: 25-April 05
From: Nashville Tennessee
Member No.: 4,340



Did the error occur whilst using phpMyAdmin or did it occur after you applied the new fields into a table?

Are the new fields 'name`, `folder`, `regatt`, `magicatt`, `magicdef` actually in the table?
Go to the top of the page
 
+Quote Post
plot
post Sep 17 2005, 11:21 PM
Post #4


Premium Member
Group Icon

Group: Members
Posts: 206
Joined: 4-September 05
Member No.: 8,310



CODE
$RPG_sql['install']['query']['rpg_class'] = "
CREATE TABLE `" . TABLE_PREFIX . "rpg_class`
(
`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(20) NOT NULL default '',
`folder` varchar(50) NOT NULL default '',
`regatt` int(10) NOT NULL default '0',
`magicatt` int(10) NOT NULL default '0',
`magicdef` int(10) NOT NULL default '0',
`regdef` int(10) NOT NULL default '0',
`speed` int(10) NOT NULL default '0',
`evade` int(10) NOT NULL default '0',
`type` int(10) NOT NULL default '1',
`typename` varchar(30) NOT NULL default '',
`visible` smallint(5) NOT NULL default '1',
`gender` smallint(1) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
";
$RPG_sql['install']['explain']['rpg_class'] = 'Created Table: <b><i>' . TABLE_PREFIX . 'rpg_class</i></b>';


im trying to install an integration hack into my board and the error occured wilst i was in the process of running the queries
Go to the top of the page
 
+Quote Post
jipman
post Sep 18 2005, 01:45 PM
Post #5


Pretty please?
Group Icon

Group: Members
Posts: 733
Joined: 28-November 04
From: Holland
Member No.: 1,552



CODE

CREATE TABLE `" . TABLE_PREFIX . "rpg_class`
(


I'm not too sure, but haven't you forgot quotes around rpg_class, or maybe there's something like a space or whatever in your TABLE_PREFIX variable?
Go to the top of the page
 
+Quote Post
plot
post Sep 18 2005, 09:57 PM
Post #6


Premium Member
Group Icon

Group: Members
Posts: 206
Joined: 4-September 05
Member No.: 8,310



im not to sure, im not really keen on MySQL so i couldnt tell you if its right or not....i just follow the intstructions on the read-me...

Ive posted this problem a few other places but this is the only place where i accually got a reply :-\ it would be nice if some more people gave a bit of thier knowledge
Go to the top of the page
 
+Quote Post

Closed TopicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. General Problems With New Account(2)
  2. Problem With Mysql(6)
  3. Php Parsing Error On Smf On My Site(16)
  4. My Site(5)
  5. Upgrade Error(3)
  6. MySQL Database(3)
  7. IPS Driver Error / MySQL Database(1)
  8. Wrong Password/username - Fatal Error In Horde(4)
  9. Can I Access MySQL Database From Outsite, Directly(10)
  10. MySQL - Can't Connect(1)
  11. Problem With MySQL Not Being Able To Connect(9)
  12. Weird MySQL Message(4)
  13. Mail Delevery System Error(6)
  14. Problems With PHP/Joomla On Hosted Site(7)
  15. Help Me!(3)
  1. Site Unavailable!(7)
  2. Error Accessing Forum Topics(1)
  3. Mysql Error Never Seen On My Site Before (too Many Connections).(13)
  4. Mysql Connect Error, Too Many Connections.(1)
  5. Php And Mysql Version.(7)
  6. Problems With cPanel(9)
  7. Problem With MySQL(5)
  8. What Is The MySQL Version @ Asta ?(16)
  9. Server Or Me?(5)
  10. Site Not Opeing ( Phpbb Forum) :: Can't Connect To Local Mysql(3)
  11. Strange Error (maybe Directoryindex Glitch?)(6)
  12. Mysql Server Not Stable After Hard Disk Swap On April 6th(2)
  13. Connecting To Astahost's Mysql(8)


 



- Lo-Fi Version Time is now: 5th December 2008 - 01:33 AM