Pages

Mysql list databases





Mysql list databases

mysql is a simple command-line tool. mysql is command line and it is very easy to use. Invoke it from the prompt of your command interpreter as follows:

$ mysql

Output:


mysql>
 
You may need to provide mysql username, password and hostname, use:

$ mysql --user=your-user-name --password=your-password

mysql>

To list database type the following command

mysql> show databases;


Output:
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
+--------------------+
2 rows in set (0.00 sec)
information_schema and mysql are name of databases. To use these database and to list available tables type the following two commands:
mysql> use mysql;Output:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
Now list tables:

mysql> show tables;Output:

+---------------------------+
| Tables_in_mysql           |
+---------------------------+
| columns_priv              |
| db                        |
| func                      |
| help_category             |
| help_keyword              |
| help_relation             |
| help_topic                |
| host                      |
| proc                      |
| procs_priv                |
| tables_priv               |
| time_zone                 |
| time_zone_leap_second     |
| time_zone_name            |
| time_zone_transition      |
| time_zone_transition_type |
| user                      |
+---------------------------+
17 rows in set (0.00 sec)
 
mysql>

13 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. I just read your blog and get the information which searching everywhere. Now it’s become on my top preference of reading for acquiring the updates without hassle.
    healthseum.com |

    ReplyDelete
  3. Τhere is definately a great deal to learn ɑbout this issue. Ι love all of the points you've madе.
    www.bestofgaytravel.com |

    ReplyDelete
  4. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value. Im glad to have found this post as its such an interesting one! I am always on the lookout for quality posts and articles so i suppose im lucky to have found this! I hope you will be adding more in the future..
    thetechnologydiet.com |

    ReplyDelete
  5. It is really a nice and useful piece of information. I am glad that you shared this helpful information with us. Please stay us up to date like this. Thank you for sharing.
    www.solotravelapp.com |

    ReplyDelete
  6. I'm impressed, I must say. Very rarely do I come across a blog that's both informative and entertaining, and let me tell you, you've hit the nail on the head. Your blog is important; the issue is something that not enough people are talking intelligently about.
    http://www.bellvilleauto.com |

    ReplyDelete
  7. I really loved reading your blog. It was very well authored and easy to understand.
    kieslerautosucks |

    ReplyDelete
  8. Must say that overall I am really impressed with this blog. It is easy to see that you are passionate about your writing. If only I had your writing ability I look forward to more updates and will be returning.
    aauw-daw.org |

    ReplyDelete
  9. from here you can get all the codes and cheats of club penguin this is the simple way to get it.
    club penguin membership codes

    ReplyDelete
  10. It is Very nice post. I just stumbled upon your weblog and wished to say that I have truly enjoyed surfing around your blog posts.
    Green House Agency |

    ReplyDelete
  11. Hi Krishnan, that’s great! I’ve never cited Tolkein beofre but that fits perfectly in the case of ‘…but some of my best friends are’.
    http://www.firstechnicare.com |

    ReplyDelete

Note:- Comment as: Option available to post without login select "Anonymous" from the drop down...........