About 190,000 results
Open links in new tab
  1. How to select a MySQL database through CLI? - Stack Overflow

    I've managed to get into MySQL using the command line terminal, but when I tried to enter some SQL, it said 'no database selected' how do I select a database? my database name is: …

  2. What exactly does SELECT database(); mean? - Stack Overflow

    Feb 3, 2019 · 3 database() is an information function provided by MySQL to return the name of the current database. It can be used anywhere a string constant would be expected. MySQL …

  3. How can I get the size of a MySQL database? - Stack Overflow

    To select from a single database, add this between the FROM and GROUP line: where table_schema='DATABASE_NAME' - replacing DATABASE_NAME with your database.

  4. mysql - How to determine which database is selected - Stack …

    Nov 11, 2011 · SELECT DATABASE(); p.s. I didn't want to take the liberty of modifying @cwallenpoole's answer to reflect the fact that this is a MySQL question and not an Oracle …

  5. How to retrieve the current version of a MySQL database …

    Jan 24, 2012 · A surprising number of answers below suggest some variant of mysql --version. This gives the version of the client utility, not the server, so it's a bit like trying to find out your …

  6. How can I get the sizes of the tables of a MySQL database?

    I can run this query to get the sizes of all tables in a MySQL database: show table status from myDatabaseName; I would like some help in understanding the results. I am looking for tables …

  7. mysql - How to create a table in a particular database ... - Stack …

    0 Assuming that you have more than one database, in mysql, you can do SHOW DATABASES to view them all and then USE with your db name to make it the current one. Running CREATE …

  8. Get table names using SELECT statement in MySQL

    In MySQL, I know I can list the tables in a database with: SHOW TABLES However, I want to insert these table names into another table, for instance: INSERT INTO metadata …

  9. Search for all occurrences of a string in a mysql database

    Mar 20, 2015 · Using the MySQL Workbench, you can search for a string from the "Database" -> "Search Table Data" menu option. Specify LIKE %URL_TO_SEARCH% and on the left side …

  10. mysql - How to grant read only permissions to a user?

    Nov 7, 2022 · 22 GRANT SELECT ON *.* TO 'user'@'localhost' IDENTIFIED BY 'password'; This will create a user with SELECT privilege for all database including Views.