|
|
|
|
![]() ![]() |
Jul 17 2005, 11:12 AM
Post
#1
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 22 Joined: 15-July 05 Member No.: 9,453 |
hi there,
im just wondering if anyone can tell me what is wrong when im trying to restore my sql databsse (sorry if this is in the wrong section but i guess this is the only section that i think this will fit in) QUOTE SQL-query: CREATE TABLE IF NOT EXISTS `e107_banlist` ( `banlist_ip` varchar( 100 ) NOT NULL default '', `banlist_admin` smallint( 5 ) unsigned NOT NULL default '0', `banlist_reason` tinytext NOT NULL , PRIMARY KEY ( `banlist_ip` ) ) ENGINE = MYISAM DEFAULT CHARSET = latin1 QUOTE MySQL said: Documentation #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 'DEFAULT CHARSET=latin1' at line 6 thanks kenneth |
|
|
|
Jul 17 2005, 05:51 PM
Post
#2
|
|
|
Premium Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 183 Joined: 27-June 05 From: Minnesota Member No.: 8,734 |
Im kind of guessing from the error since I don't know that much about sql.... but if your error message is correct, the "DEFAULT CHARSET=latin1" part is incorrect.
Reasons for being incorrect. One possible reason is that the server doesn't have "latin1" charset. Another could be that the line of code is incorrect. My suggestion would be to try taking out the "CHARSET = latin1" part and see if it works. Otherwise you could just manually create the table through mysqladmin. Hope it helps |
|
|
|
Jul 18 2005, 03:59 AM
Post
#3
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 22 Joined: 15-July 05 Member No.: 9,453 |
QUOTE(xJedix @ Jul 18 2005, 01:51 AM) Im kind of guessing from the error since I don't know that much about sql.... but if your error message is correct, the "DEFAULT CHARSET=latin1" part is incorrect. Reasons for being incorrect. One possible reason is that the server doesn't have "latin1" charset. Another could be that the line of code is incorrect. My suggestion would be to try taking out the "CHARSET = latin1" part and see if it works. Otherwise you could just manually create the table through mysqladmin. Hope it helps thanks for your reply.. i did take it out before but unfortunately it came up with a extreamly error after that so i thought i would post it here and maybe i should find out whats the defult char for trap17 server.. but anyway..thanks anyway... appreciate it |
|
|
|
Jul 19 2005, 07:32 AM
Post
#4
|
|
|
Newbie [Level 1] ![]() Group: Members Posts: 22 Joined: 15-July 05 Member No.: 9,453 |
hmm..BUMP...do need someone to verify the problem if its possible..thanks
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 22nd November 2008 - 04:33 PM |