SHOW DATABASES;

mysql> SHOW DATABASES;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |  # 描述用户访问权限的库
| performance_schema |
| sakila             |
| test               |  # 测试使用的库
| world              |
+--------------------+

时间: 2024-10-26 14:59:27

SHOW DATABASES;的相关文章

Local Databases with SQLiteOpenHelper

Overview For maximum control over local data, developers can use SQLite directly by leveraging SQLiteOpenHelper for executing SQL requests and managing a local database. In this guide, we'll use the example of building a database to persist user crea

DB太大?一键帮你收缩所有DB文件大小(Shrink Files for All Databases in SQL Server)

本文介绍一个简单的SQL脚本,实现收缩整个Microsoft SQL Server实例所有非系统DB文件大小的功能. 作为一个与SQL天天打交道的程序猿,经常会遇到DB文件太大,把空间占满的情况: 而对于开发测试人员来说,如果DB数据不是特别重要的话,不会特意扩大磁盘空间,而是直接利用SQL的Shrink File功能缩小DB文件大小,详见:https://docs.microsoft.com/en-us/sql/relational-databases/databases/shrink-a-f

MySql: show databases/tables use database desc table

1. show databases mysql> show databases;+--------------------+| Database |+--------------------+| information_schema || mysql || performance_schema || test |+--------------------+4 rows in set (0.00 sec) 2. use database_name mysql> use testDatabase

(笔记)Mysql命令show databases:显示所有数据库

show databases命令用于显示所有数据库. show databases命令格式:show databases; (注意:最后有个s) 例如:mysql> show databases; 注意:为了不在显示的时候乱码,要修改数据库默认编码.以下以GBK编码页面为例进行说明. 1) 修改MYSQL的配置文件:my.ini里面修改default-character-set=gbk 2) 代码运行时修改: Java代码:jdbc:mysql://localhost:3306/test?use

[转载]Back up all of your mysql databases nightly

原文地址:http://www.linuxbrigade.com/back-up-all-of-your-mysql-databases-nightly/ Put the following into something like /usr/local/bin/mysql_backup.sh and since it has MySQL’s root password in it, make sure that you chmod 700 to it so no one else can rea

6 Useful Databases to Dig for Data (and 100 more)

6 Useful Databases to Dig for Data (and 100 more) You already know that data is the bread and butter of reports and presentations. Data makes your presentation solid. It backs up the ideas you are selling. It gives people reasons to listen to you. Ho

zabbix PHP databases support off Fail

zabbix初始化检查安装环境不通过: PHP databases support off   Fail     --未找到所支持的数据库 处理方法:安装Mysqli模块 ################mysqli模块的安装################ 记得原来在编译php的已经已经加上参数--with-mysql=/usr/local/mysql \--with-mysqli=/usr/local/mysql/bin/mysql_config \可后来找了一个,的确不存在mysqli.s

Elasticsearch: Indexing SQL databases. The easy way

Elasticsearchis a great search engine, flexible, fast and fun. So how can I get started with it? This post will go through how to get contents from a SQL database into Elasticsearch. Elasticsearch has a set of pluggable services called rivers. A rive

11gR2 Database Services for "Policy" and "Administrator" Managed Databases (文档 ID 1481647.1)

In this Document   Purpose   _afrLoop=1459311711568804&id=1481647.1&displayIndex=6&_afrWindowMode=0&_adf.ctrl-state=foyvm6hmv_102#REF_TEXT">Details Applies to: Oracle Server - Enterprise Edition - Version 11.2.0.1 and later Informa