View Single Post
  #7  
Old 04-19-2003, 02:46 PM
Elrach
Sarnak
 
Join Date: Apr 2003
Posts: 66
Default

Try this:

The syntax clearly says that the password must not be separated with a space from the '-p'. If you do, it takes our password as the database name. And of course, that won't exist.

Code:
mysql -u <username> -p<passwd> <database>

or 

mysql -u <username> -p <database>
The second one will just prompt you for a password afterwards. Key it in, and voila![/code]
Reply With Quote