• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Error In Sql Syntax

Lotion Lars

New Member
Joined
Oct 6, 2009
Messages
9
Reaction score
0
#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 'DELIMITER |

CREATE TRIGGER `ondelete_accounts`
BEFORE DELETE
ON `accounts`
' at line 1


I got this msg when i uploaded my database to my localhost site,
anyone jnows how to fix this?

Lotion
 
Oh I really don't have any knowledge of 0.2 .. But try looking in ur database after the ondelete_accounts and make sure everything looks right.
 
Oh I really don't have any knowledge of 0.2 .. But try looking in ur database after the ondelete_accounts and make sure everything looks right.

I have been looking at it for houers, but cantfiggure it out:P

this is what that segment looks like:
DELIMITER |

CREATE TRIGGER `ondelete_accounts`
BEFORE DELETE
ON `accounts`
FOR EACH ROW
BEGIN
DELETE FROM `bans` WHERE `account` = OLD.`id`;
END|
Can you tell whats wrong?
you're help is apreciated, thanks.
Lotion
 
Is that really taken from the database? Cause that doesnt look like a valid table to me.

Because it isn't a table is a trigger had to be a damn rep seeker answering without the minimal knowladge

@Thread update your phpmyadmin and if the problem persist update your mysql....
 
Back
Top