I am trying to create a table in my database (hosted with godaddy)
when ever I try to create a table in the database it gives me an error
#1046 - No database selected
So I am trying to create a table like this
USE orderformuser
CREATE TABLE `users`(
`user_id` int NOT NULL AUTO_INCREMENT,
`username` char(25),
`password` char(40),
UNIQUE (User_Id)
)
However I am getting this error now.. and I just don't know what I am doing wrong
#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 'CREATE TABLE `users`(
`user_id` int NOT NULL AUTO_INCREMENT,
`username` char(2' at line 3
any help would be appreciated