Author | Message | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
install db sql syntax error
| Hi all, at first I received the error telling me that each primary key must be not null or to use unique, instead of primary null, so changed that to unique, but now I'm getting another query error: ERROR 1064 (42000) at line 104: 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 'IF NOT EXISTS `character_account_index` ON `characters` (`account`)' at line 1 I've tried a couple of things, but don't seem to work, any help is appreciated, as server crashes upon creation of character.
|
Re: install db sql syntax error
| What is the query in question? Edit: nvm I just realized this is in the EOServ sub-forum. Try using an install.sql from an earlier revision, that fixed it for me. --- stay tuned.
|
Re: install db sql syntax error
| It sounds like the install.sql wasn't completed. You could try a couple of things like make a clean database and run it again, or try running it again in the current database. If that doesn't work for you a last resort would be to open install.sql in notepad and use that as a reference to manually add the tables. You might even change null to not null in the install.sql where you are getting errors. I have seen inconsistencies before when running install.sql on various platforms. Not really sure why it is throwing syntax errors when that is pretty much a standard sql file.
|
Re: install db sql syntax error
| mysql doesn't let you do if exists comparisons on table columns.. it's pretty lame. someone asked for it to get implemented 8 years ago and nothing happened. --- I not hacker “Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.†- Albert Einstein : Really Great Quote Ramy!
|
Re: install db sql syntax error
| Apollo posted: (2nd May 2017, 03:39 pm) I did go to the lines where the errors occured and changed it to not null, instead of null, that fixed it, but the last errors are still there.
|
Re: install db sql syntax error
| What do you mean by last errors?
|
Re: install db sql syntax error
| The problem is exactly as I said. The solution? Start fresh and get rid of the IF NOT EXISTS or just use mariadb instead of mysql. --- I not hacker “Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.†- Albert Einstein : Really Great Quote Ramy!
|
Re: install db sql syntax error
| It's okay, I fixed it ^^ IF TABLE NOT EXIST is just not supported very well.
| |