Page 1 of 1

Mysql problem

PostPosted: 02. January 2007 04:57
by gloomer
I need to use mysql for something, so I typed "mysql>" into the command line and this is what I got.


bash: syntax error near unexpected token `newline'


How can I use MySql when I keep getting this error?

Any way around this?

By the way.. Xampp is probably the most valuable piece of open source software in the entire industry of webhosting.

Thanks so much.

I've got away with using phpmyadmin as a graphical substitute for mysql, but now I need to go by the command line for mysql.

Thanks for helping. :)

PostPosted: 05. January 2007 03:21
by pawill79
"so I typed "mysql>" into the command line"

mysql> is just the prompt once you are in mysql...

You must type this to actually get into mysql.

/opt/lampp/bin/mysql -u root -p

This will log in with the root user account and prompt for your root password. Enter your password then you will be connected in the MySQL environment and have the "mysql>" prompt