Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. list all databases / tables (mysql)

list all databases / tables (mysql)

Scheduled Pinned Locked Moved Database
questiondatabasemysqltutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jassim Rahma
    wrote on last edited by
    #1

    I want to know how can I list all database in mysql? and also how to show all tables within the selected database?

    P M L 3 Replies Last reply
    0
    • J Jassim Rahma

      I want to know how can I list all database in mysql? and also how to show all tables within the selected database?

      P Online
      P Online
      PIEBALDconsult
      wrote on last edited by
      #2

      You can't (as far as I know). List tables (if I recall correctly). Edit: It's show tables and also describe <table>

      1 Reply Last reply
      0
      • J Jassim Rahma

        I want to know how can I list all database in mysql? and also how to show all tables within the selected database?

        M Offline
        M Offline
        Mycroft Holmes
        wrote on last edited by
        #3

        Having limited (none) experience with mysql I can only recommend that you look into the system table, sql server has a master database that stores the db information, I'm pretty sure mysql will have something similar. There should be system tables that hold the meta data for the database somewhere in mysql, research will be required. There are lots of responses from Google for this enquiry.

        Never underestimate the power of human stupidity RAH

        1 Reply Last reply
        0
        • J Jassim Rahma

          I want to know how can I list all database in mysql? and also how to show all tables within the selected database?

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          jrahma wrote:

          I want to know how can I list all database in mysql?

          By keeping track if the tables you make. Create a tabled called "MyTables", and add an entry whenever you successfully issue a CREATE command :)

          I are Troll :suss:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups