+--------------------+
|
Databases
|
+--------------------+
| information_schema |
| mysql
|
| test
|
+--------------------+
The list of installed databases may vary, but will always include the minimum of
information_schema. In most cases, the
The preceding command (and commands for other MySQL programs such as mysql) may not work if
the correct MySQL account does not exist. For example, the program may fail with an error, or you may
not be able to view all databases. If you installed using the MSI packages and used the MySQL Server
Instance Config Wizard, then the
you supplied. In this case, you should use the
and
options if you have already secured the initial MySQL accounts.) With -p, you will be
-u root
-p
prompted for the
root
C:\>
C:\mysql\bin\mysqlshow -u root -p
Enter password:
(enter root password here)
+--------------------+
|
Databases
|
+--------------------+
| information_schema |
| mysql
|
| test
|
+--------------------+
If you specify a database name,
C:\>
C:\mysql\bin\mysqlshow mysql
Database: mysql
+---------------------------+
|
Tables
+---------------------------+
| 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
+---------------------------+
Use the
program to select information from a table in the
mysql
C:\>
C:\mysql\bin\mysql -e "SELECT Host,Db,User FROM mysql.db"
+------+--------+------+
| host | db
| user |
+------+--------+------+
| %
| test
|
| %
| test_% |
+------+--------+------+
For more information about
Database, Table, and Column
Tool".
Windows Postinstallation Procedures
test
user will have been created automatically with the password
root
password. For example:
displays a list of the tables within the database:
mysqlshow
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
and mysql, see
mysqlshow
Information", and
89
database will also be installed automatically.
and
options. (You will also need to use the
-u root
-p
mysql
Section 4.5.6,
Section 4.5.1,
"mysql
and
mysql
database:
"mysqlshow
— Display
— The MySQL Command-Line
Need help?
Do you have a question about the 5.0 and is the answer not in the manual?
Questions and answers