I am connecting to database mysql using command prompt using below command
mysql -h localhost -u test -ptest test;
But i am getting following error:-
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
-h localhost -u test -ptest test' at line 1
I have done a lot of googling but could not find the reason behind this problem. Any help?
SHOW DATABSES.use something_db