$ mysql -u username -pthe command will prompt for a password
mysql> Show databases;The above two commands are extremely useful when one wants to look at the databases installed and tables in individual databases.
mysql> show tables;
For example to look at users tables in database drupal the following commands will suffice.
mysql> use drupal6;
mysql> select * from users;
These commands can be used in both Linux and Windows and are very handy and dont require much to do.
No comments:
Post a Comment