Oracle 5.0 Reference Manual page 383

Table of Contents

Advertisement

mysqlmanager
| mysqld3
| offline |
| mysqld4
| online
| mysqld2
| offline |
+---------------+---------+
SHOW INSTANCE STATUS instance_name
Shows status and version information for an instance.
mysql>
SHOW INSTANCE STATUS mysqld3;
+---------------+--------+---------+
| instance_name | status | version |
+---------------+--------+---------+
| mysqld3
| online | unknown |
+---------------+--------+---------+
SHOW INSTANCE OPTIONS instance_name
Shows the options used by an instance.
mysql>
SHOW INSTANCE OPTIONS mysqld3;
+---------------+---------------------------------------------------+
| option_name
| value
+---------------+---------------------------------------------------+
| instance_name | mysqld3
| mysqld-path
| /home/cps/mysql/trees/mysql-4.1/sql/mysqld
| port
| 3309
| socket
| /tmp/mysql.sock3
| pid-file
| hostname.pid3
| datadir
| /home/cps/mysql_data/data_dir1/
| language
| /home/cps/mysql/trees/mysql-4.1/sql/share/english |
+---------------+---------------------------------------------------+
SHOW instance_name LOG FILES
The command lists all log files used by the instance. The result set contains the path to the log file
and the log file size. If no log file path is specified in the instance section of the configuration file (for
example, log=/var/mysql.log), the Instance Manager tries to guess its placement. If Instance
Manager is unable to guess the log file placement you should specify the log file location explicitly by
using a log option in the appropriate instance section of the configuration file.
mysql>
SHOW mysqld LOG FILES;
+-------------+------------------------------------+----------+
| Logfile
| Path
+-------------+------------------------------------+----------+
| ERROR LOG
| /home/cps/var/mysql/owlet.err
| GENERAL LOG | /home/cps/var/mysql/owlet.log
| SLOW LOG
| /home/cps/var/mysql/owlet-slow.log | 4463
+-------------+------------------------------------+----------+
Log options are described in
SHOW instance_name LOG {ERROR | SLOW | GENERAL} size[,offset_from_end]
This command retrieves a portion of the specified log file. Because most users are interested in
the latest log messages, the
of the log. To retrieve data from the middle of the log file, specify the optional
parameter. The following example retrieves 21 bytes of data, starting 23 bytes before the end of the
log file and ending 2 bytes before the end:
mysql>
SHOW mysqld LOG GENERAL 21, 2;
+---------------------+
| Log
+---------------------+
| using password: YES |
+---------------------+
SET instance_name.option_name[=option_value]
— The MySQL Instance Manager
|
Section 5.1.3, "Server Command
parameter defines the number of bytes to retrieve from the end
size
|
363
|
|
|
|
|
|
|
| Filesize |
| 9186
|
| 471503
|
|
Options".
offset_from_end

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents