just installed mysql server using sudo apt-get install mysql server when i try to display the database in terminal getting this type of error SHOW DATABASE; 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 'DATABASE' at line 1


That would be SHOW DATABASES; or SHOW SCHEMAS; Note the "S" :-). If you have any further issues, try here - the MySQL client docco.

  • it's work thanx – P_O_I_S_O_N Aug 8 '14 at 8:25
  • Check out my advice about asking questions &c. here. You're new to the forum - it's a great resource and you'll get the most out of it if you follow some simple guidelines. – Vérace Aug 8 '14 at 9:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.