maxelcat
Technical User
- Oct 19, 2006
- 79
Hi all
Am attempting to set up my first database on a server
Server is running mysql 4.1.2 standalone and php4.2 and I have to use myphpadmin to adminsiter the database.
I have set the db up and have been tryong to get my first table. I keep getting this error.
When I was doing this on apache using the command line on my laptop I didn't have the collate/character set bit. I didn't really know what to choose, but googeling led me to my choice - perhpas its wrong???
Any ideas on how to proceed gratefully recieved
thanks
edward
Am attempting to set up my first database on a server
Server is running mysql 4.1.2 standalone and php4.2 and I have to use myphpadmin to adminsiter the database.
I have set the db up and have been tryong to get my first table. I keep getting this error.
When I was doing this on apache using the command line on my laptop I didn't have the collate/character set bit. I didn't really know what to choose, but googeling led me to my choice - perhpas its wrong???
Any ideas on how to proceed gratefully recieved
thanks
edward
Code:
Error
SQL query:
CREATE TABLE `users` (
`user_id` VARCHAR( 16 ) UNSIGNED CHARACTER SET latin2 COLLATE latin2_general_ci NOT NULL ,
`first` VARCHAR( 15 ) UNSIGNED CHARACTER SET latin2 COLLATE latin2_general_ci NOT NULL
) ENGINE = MYISAM CHARACTER SET latin2 COLLATE latin2_general_ci
MySQL said:
#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 'UNSIGNED CHARACTER SET latin2 COLLATE latin2_general_ci NOT NULL, `first` VARCHA' at line 1