Hi All
I'm fairly new to MySQL devlopment, and Im trying to create a table in and existing MySQL database using an sql file on windows platform
Contents of insert.sql
CREATE TABLE `contact_details` (
`User_ID` int(10) unsigned NOT NULL auto_increment Primary Key,
`f_name` varchar(20) default NULL,
`l_name` varchar(20) default NULL,
`address1` varchar(45) default NULL,
`postcode` varchar(7) default NULL,
`email` varchar(60) default NULL
);
I copy this file into c:\program files\MySQL\MySQL Server 5.0\bin
and try to create the tabel using the following command at the dos prompt
the database is called test it does exist and its empty
c:\program files\MySQL\MySQL Server 5.0\bin> mysql test < insert.sql
but all this does is list a whole load of help info and does not create anything





Bookmarks