AKalair Posted September 13, 2008 Share Posted September 13, 2008 Hi guys, Im using MySql 4.1.22 and im trying to create a table in a SSH window. I type this mysql> CREATE TABLE ( -> username, text -> password, text -> ); and get an error message ERROR 1064 (42000): 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 '( username, text password, text )' at line 1 Can anyone help me? Thanks Quote Link to comment Share on other sites More sharing options...
Mchl Posted September 13, 2008 Share Posted September 13, 2008 You didn't specify name of the table Bookmark this: http://dev.mysql.com/doc/refman/5.0/en/sql-syntax.html and use often Quote Link to comment Share on other sites More sharing options...
AKalair Posted September 13, 2008 Author Share Posted September 13, 2008 Thanks, I fixed that but still get an error ? It looks right compared to that guide to mysql> CREATE TABLE users ( -> username, text -> password, text -> ); ERROR 1064 (42000): 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 'mysql Quote Link to comment Share on other sites More sharing options...
Mchl Posted September 13, 2008 Share Posted September 13, 2008 CREATE TABLE users (username text, password text); Quote Link to comment Share on other sites More sharing options...
fenway Posted September 13, 2008 Share Posted September 13, 2008 Except that TEXT is the wrong choice for sure. Quote Link to comment Share on other sites More sharing options...
Mchl Posted September 13, 2008 Share Posted September 13, 2008 Maybe these are Entish names and passwords. In other cases, TEXT is overkill. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.