Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Old 06-22-2005, 02:25 AM sql error again
Average Talker

Posts: 23
Trades: 0
i got an sql error again
Quote:
An error occurred trying to update the database
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 ')' at line 33
im installing phpbb with a few mods pre-installed
here is the two sql files
http://www.pacrim.pwnagehost.com/bet...sql_schema.sql
http://www.pacrim.pwnagehost.com/bet...ysql_basic.sql

i dont know what is wrong
igeoffi is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-22-2005, 07:58 AM
leavethisplace's Avatar
Ultra Talker

Posts: 297
Trades: 0
none of those files have an update statement near the line 33 - are you sure its the SQL that has the problem? as it could be the PHP files that are executing SQL that is more likely causing the problem. Does the error message not give you the name of the root file??
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill

Please visit my sites:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
leavethisplace is offline
Reply With Quote
View Public Profile
 
Old 06-22-2005, 12:33 PM
Average Talker

Posts: 23
Trades: 0
it doesnt give me the name of the file with the error
i dont its a php error cuz it says you have an error in your sql syntax

Last edited by igeoffi; 06-22-2005 at 12:37 PM..
igeoffi is offline
Reply With Quote
View Public Profile
 
Old 06-22-2005, 02:29 PM
leavethisplace's Avatar
Ultra Talker

Posts: 297
Trades: 0
this is true, however, if there is an SQL statement in the PHP then it will throw this error up - you said you're installing PHPBB with hacks, so look through the hack files to see if any update SQL statements are being used. Also, u may want to check the website where you got the hack from to see if anyone has posted the same problem on the site forum, with a resolve.
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill

Please visit my sites:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
leavethisplace is offline
Reply With Quote
View Public Profile
 
Old 06-22-2005, 02:48 PM
Average Talker

Posts: 23
Trades: 0
is there a way to rewrite
Code:
CREATE TABLE `phpbb_shout` (
  `shout_id` mediumint(8) unsigned NOT NULL auto_increment,
  `shout_username` varchar(25) NOT NULL default '',
  `shout_user_id` mediumint(8) NOT NULL default '0',
  `shout_group_id` mediumint(8) NOT NULL default '0',
  `shout_session_time` int(11) NOT NULL default '0',
  `shout_ip` varchar(8) NOT NULL default '',
  `shout_text` text NOT NULL,
  `shout_active` mediumint(8) NOT NULL default '0',
  `enable_bbcode` tinyint(1) NOT NULL default '0',
  `enable_html` tinyint(1) NOT NULL default '0',
  `enable_smilies` tinyint(1) NOT NULL default '0',
  `enable_sig` tinyint(1) NOT NULL default '0',
  `shout_bbcode_uid` varchar(10) NOT NULL default '',
  KEY `shout_id` (`shout_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;
to something like
Code:
# --------------------------------------------------------
#
# Table structure for table 'phpbb_shoutbox’
#
CREATE TABLE phpbb_shoutbox (
   shout_id MEDIUMINT(8) UNSIGNED NOT NULL auto_increment, 
   shout_username VARCHAR(25) NOT NULL, 
   shout_user_id MEDIUMINT(8) NOT NULL, 
   shout_group_id MEDIUMINT(8) NOT NULL,
   shout_session_time INT(11) NOT NULL, 
   shout_ip CHAR(8) NOT NULL, 
   shout_text TEXT NOT NULL, 
   shout_active MEDIUMINT(8) NOT NULL, 
   enable_bbcode TINYINT (1) NOT NULL,
   enable_html TINYINT (1) NOT NULL,
   enable_smilies TINYINT (1) NOT NULL,
   enable_sig TINYINT (1) NOT NULL,
   shout_bbcode_uid VARCHAR(10) NOT NULL,
   INDEX (shout_id)
);

Last edited by igeoffi; 06-22-2005 at 03:42 PM..
igeoffi is offline
Reply With Quote
View Public Profile
 
Old 06-23-2005, 07:32 AM
leavethisplace's Avatar
Ultra Talker

Posts: 297
Trades: 0
wait a sec, i've just noticed something i've not noticed before. The line below should be taken out
PHP Code:
ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 
i've come across this error myself before and that seemed to sort it out no problem at all - i believe it's either a mySQL or myPHPAdmin error - either way, try it.
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill

Please visit my sites:
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
leavethisplace is offline
Reply With Quote
View Public Profile
 
Old 06-24-2005, 09:58 PM
Average Talker

Posts: 23
Trades: 0
no it works
my question is how do you re-write it like the ssecond one?
igeoffi is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to sql error again
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18435 seconds with 12 queries