2006-07-20 13:24:12 +04:00
|
|
|
SHOW VARIABLES LIKE 'server_id';
|
|
|
|
Variable_name Value
|
|
|
|
server_id 1
|
2005-10-01 01:14:50 +04:00
|
|
|
SHOW INSTANCES;
|
2006-05-18 18:57:50 +04:00
|
|
|
instance_name state
|
2006-11-27 01:47:38 +02:00
|
|
|
mysqld1 XXXXX
|
2005-10-01 01:14:50 +04:00
|
|
|
mysqld2 offline
|
|
|
|
SHOW INSTANCE OPTIONS mysqld1;
|
|
|
|
option_name value
|
|
|
|
instance_name VALUE
|
|
|
|
socket VALUE
|
|
|
|
pid-file VALUE
|
|
|
|
port VALUE
|
|
|
|
datadir VALUE
|
|
|
|
log VALUE
|
|
|
|
log-error VALUE
|
|
|
|
log-slow-queries VALUE
|
|
|
|
language VALUE
|
|
|
|
character-sets-dir VALUE
|
|
|
|
basedir VALUE
|
|
|
|
server_id VALUE
|
2007-02-23 23:36:25 +03:00
|
|
|
shutdown-delay VALUE
|
2005-10-01 01:14:50 +04:00
|
|
|
skip-stack-trace VALUE
|
2007-04-13 19:23:02 +02:00
|
|
|
loose-skip-innodb VALUE
|
|
|
|
loose-skip-ndbcluster VALUE
|
2006-01-27 13:41:15 +03:00
|
|
|
log-output VALUE
|
2005-10-01 01:14:50 +04:00
|
|
|
SHOW INSTANCE OPTIONS mysqld2;
|
|
|
|
option_name value
|
|
|
|
instance_name VALUE
|
|
|
|
socket VALUE
|
|
|
|
pid-file VALUE
|
|
|
|
port VALUE
|
|
|
|
datadir VALUE
|
|
|
|
log VALUE
|
|
|
|
log-error VALUE
|
|
|
|
log-slow-queries VALUE
|
|
|
|
language VALUE
|
|
|
|
character-sets-dir VALUE
|
|
|
|
basedir VALUE
|
|
|
|
server_id VALUE
|
2007-02-23 23:36:25 +03:00
|
|
|
shutdown-delay VALUE
|
2005-10-01 01:14:50 +04:00
|
|
|
skip-stack-trace VALUE
|
2007-04-13 19:23:02 +02:00
|
|
|
loose-skip-innodb VALUE
|
|
|
|
loose-skip-ndbcluster VALUE
|
2006-05-18 18:57:50 +04:00
|
|
|
nonguarded VALUE
|
2006-01-27 13:41:15 +03:00
|
|
|
log-output VALUE
|
2005-10-01 01:14:50 +04:00
|
|
|
START INSTANCE mysqld2;
|
2006-06-19 14:13:34 +04:00
|
|
|
Success: the process has been started.
|
2005-10-01 01:14:50 +04:00
|
|
|
STOP INSTANCE mysqld2;
|
2006-06-19 14:13:34 +04:00
|
|
|
Success: the process has been stopped.
|
2005-10-01 01:14:50 +04:00
|
|
|
SHOW mysqld1 LOG FILES;
|
|
|
|
Logfile Path File size
|
|
|
|
ERROR LOG PATH FILE_SIZE
|
|
|
|
GENERAL LOG PATH FILE_SIZE
|
|
|
|
SLOW LOG PATH FILE_SIZE
|
|
|
|
SHOW mysqld2 LOG FILES;
|
|
|
|
Logfile Path File size
|
|
|
|
ERROR LOG PATH FILE_SIZE
|
|
|
|
GENERAL LOG PATH FILE_SIZE
|
|
|
|
SLOW LOG PATH FILE_SIZE
|
|
|
|
SHOW mysqld1 LOG ERROR 10;
|
|
|
|
Log
|
|
|
|
LOG_DATA
|
|
|
|
SHOW mysqld1 LOG SLOW 10;
|
|
|
|
Log
|
|
|
|
LOG_DATA
|
|
|
|
SHOW mysqld1 LOG GENERAL 10;
|
|
|
|
Log
|
|
|
|
LOG_DATA
|
|
|
|
SHOW mysqld1 LOG ERROR 10, 2;
|
|
|
|
Log
|
|
|
|
LOG_DATA
|
|
|
|
SHOW mysqld1 LOG SLOW 10, 2;
|
|
|
|
Log
|
|
|
|
LOG_DATA
|
|
|
|
SHOW mysqld1 LOG GENERAL 10, 2;
|
|
|
|
Log
|
|
|
|
LOG_DATA
|
|
|
|
SHOW mysqld2 LOG ERROR 10;
|
|
|
|
Log
|
|
|
|
LOG_DATA
|
|
|
|
SHOW mysqld2 LOG SLOW 10;
|
|
|
|
Log
|
|
|
|
LOG_DATA
|
|
|
|
SHOW mysqld2 LOG GENERAL 10;
|
|
|
|
Log
|
|
|
|
LOG_DATA
|
|
|
|
SHOW mysqld2 LOG ERROR 10, 2;
|
|
|
|
Log
|
|
|
|
LOG_DATA
|
|
|
|
SHOW mysqld2 LOG SLOW 10, 2;
|
|
|
|
Log
|
|
|
|
LOG_DATA
|
|
|
|
SHOW mysqld2 LOG GENERAL 10, 2;
|
|
|
|
Log
|
|
|
|
LOG_DATA
|