About 9,180,000 results
Open links in new tab
  1. DATABASE () – Get the Current Database Name in MySQL

    Dec 12, 2021 · In MySQL, DATABASE() is a built-in function that returns the default (current) database name. The result is returned as a string in the utf8 character set. If there is no default …

  2. How do I find out my MySQL URL, host, port and username?

    Nov 4, 2010 · Easiest way is probably using command status; In the output you'll find database, user, host and port: mysql> status; ----- mysql Ver 8.0.13 for Win64 on x86_64 (MySQL …

  3. 5.4 Getting Information About Databases and Tables - MySQL

    What if you forget the name of a database or table, or what the structure of a given table is (for example, what its columns are called)? MySQL addresses this problem through several …

  4. How do I find the name of database MySQL - Stack Overflow

    Sep 13, 2013 · What do you want to find, host name or database name? The question title and the question body both imply something different. The name of the selected database can be …

  5. mysql - How to determine which database is selected - Stack Overflow

    Oct 26, 2022 · Question is to show which is the currently selected database, however your reply is showing procedure to filter database. Correct way is to run: SELECT DATABASE(); –

  6. mysql - Find database name from select query - Stack Overflow

    Aug 23, 2018 · select database(), id, name, created_on from ( select * from db1.user union all select * from db2.user union all select * from db3.user) as q where id = "123"; In this case, the …

  7. How to search for a specific column name in all the tables in MySQL ...

    Aug 30, 2018 · You can use the INFORMATION_SCHEMA database and the COLUMNS table in particular Example of use: SELECT table_name, column_name, data_type, ordinal_position …

  8. MySQL SHOW DATABASES: List All Databases in MySQL - MySQL

    Use SHOW DATABASES statement to list all database in the current server. Querying database names from the schemata table in in the information_schema database. Was this tutorial …

  9. How to Show a List of All Databases in MySQL - GeeksforGeeks

    Jul 8, 2024 · In this article, you will discover how to list all the databases in MySQL along with some examples. The MySQL, SHOW DATABASES is used to list the databases that are …

  10. How to Show the Current Database in MySQL - Delft Stack

    Mar 11, 2025 · To find your current database in MySQL Workbench, follow these steps: Open MySQL Workbench and connect to your server. In the left sidebar, you’ll see a section labeled …

  11. Some results have been removed
Refresh