M:\mySQL\bin>mysqladmin -h slayer ping mysqld is alive M:\mySQL\bin>mysqladmin -h slayer status Uptime: 14568 Threads: 1 Questions: 10 Slow queries: 0 Opens: 0 Flush ta tables: 1 Queries per second avg: 0.000 M:\mySQL\bin>mysqladmin -h slayer version mysqladmin Ver 8.41 Distrib 4.1.11, for Win32 on ia32 Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license Server version 5.0.3-beta-nt Protocol version 10 Connection slayer via TCP/IP TCP port 3306 Uptime: 4 hours 2 min 56 sec Threads: 1 Questions: 11 Slow queries: 0 Opens: 0 Flush tables: 0 Open t ries per second avg: 0.000 M:\mySQL\bin>mysql -h slayer Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 to server version: 5.0.3-beta-nt Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> \s -------------- mysql Ver 14.7 Distrib 4.1.11, for Win32 (ia32) Connection id: 3 Current database: Current user: ODBC@SLAMMER-6GB SSL: Not in use Using delimiter: ; Server version: 5.0.3-beta-nt Protocol version: 10 Connection: slayer via TCP/IP Server characterset: latin1 Db characterset: latin1 Client characterset: latin1 Conn. characterset: latin1 TCP port: 3306 Uptime: 3 hours 50 min 42 sec Threads: 1 Questions: 8 Slow queries: 0 Opens: 0 Flush tables: 0 Open ta Quies per second avg: -0.000 -------------- mysql> quit Bye E:\programs\MySQL\bin>>mysqladmin -h smother -u root -p processlist Enter password: ****** +----+------+------------------+----+---------+------+-------+------------------+ Id | User | Host | db | Command | Time | State | Info | +----+------+------------------+----+---------+------+-------+------------------+ 4 | root | SLAMMER-6GB:2442 | | Query | 0 | | show processlist | +----+------+------------------+----+---------+------+-------+------------------+ M:\mySQL\bin>mysqladmin -h slayer mysqladmin Ver 8.41 Distrib 4.1.11, for Win32 on ia32 Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB ... Administration program for the mysqld daemon. Usage: mysqladmin [OPTIONS] command command.... -h, --host=name -u, --user=name if not current user. -p, --password[=name] If password not given it will be requested -O, --set-variable=name Change the value of a variable. deprecated; use --variable-name=value. -v, --verbose -V, --version Output version information and exit. -E, --vertical Print output vertically. similar to --relative, prints output vertically. -r, --relative Show difference between current and previous values when used with --sleep with extended-status -#, --debug[=name] Output debug log. Often this is 'd:t:o,filename'. -f, --force Don't ask for confirmation on drop database; With multiple commands, continue even if an error occurs. -C, --compress Use compression in server/client protocol. --character-sets-dir=name --default-character-set=name --protocol=name tcp,socket,pipe,memory. -W, --pipe -P, --port=# -S, --socket=name Socket file to use for connection. -i, --sleep=# Execute commands again and again with a sleep between. ex: status -c, --count=# Number of iterations to make. with --sleep -r, --relative Show difference between current and previous values used with --sleep use|grep -v " 0 "
--shared-memory-base-name=name Base name of shared memory. -w, --wait[=#] Wait and retry if connection is down. --connect_timeout=# -s, --silent Silently exit if can't connect to server. --shutdown_timeout=# Variables (--variable-name=value) and boolean options {FALSE|TRUE} Value (after reading options) --------------------------------- ----------------------------- count 0 force FALSE compress FALSE character-sets-dir (No default value) default-character-set (No default value) host slayer port 3306 relative FALSE shared-memory-base-name (No default value) socket (No default value) sleep 0 user (No default value) verbose FALSE vertical FALSE connect_timeout 43200 shutdown_timeout 3600 Default options are read from the following files in the given order: C:\WINNT\my.ini C:\WINNT\my.cnf C:\my.ini C:\my.cnf The following groups are read: mysqladmin client The following options may be given as the first argument: --print-defaults Print the program argument list and exit --no-defaults Don't read default options from any options file --defaults-file=# Only read default options from the given file # --defaults-extra-file=# Read this file after the global files are read Where command is a one or more of: (Commands may be shortened) create databasename debug Instruct server to write debug information to log drop databasename extended-status flush-hosts flush-logs flush-status flush-tables flush-threads flush-privileges Reload grant tables (same as reload) kill id,id,... Kill mysql threads password new-password Change old password to new-password, MySQL 4.1 hashin old-password new-password Change old password to new-password in old format ping Check if mysqld is alive processlist Show list of active threads in server reload Reload grant tables refresh Flush all tables and close and open logfiles shutdown status start-slave stop-slave variables version
E:\programs\MySQL\bin>mysqladmin -h smother -u root -pxxxx -v extended-status
+-----------------------+------- Variable_name | Value +-----------------------+------- Aborted_clients | 0 Aborted_connects | 1 Binlog_cache_disk_use | 0 Binlog_cache_use | 0 Bytes_received | 909 Bytes_sent | 2214 Com_admin_commands | 0 Com_alter_db | 0 Com_alter_table | 0 Com_analyze | 0 Com_backup_table | 0 Com_begin | 0 Com_change_db | 3 Com_change_master | 0 Com_check | 0 Com_checksum | 0 Com_commit | 0 Com_create_db | 1 Com_create_function | 0 Com_create_index | 0 Com_create_table | 0 Com_dealloc_sql | 0 Com_delete | 0 Com_delete_multi | 0 Com_do | 0 Com_drop_db | 0 Com_drop_function | 0 Com_drop_index | 0 Com_drop_table | 0 Com_drop_user | 0 Com_execute_sql | 0 Com_flush | 0 Com_grant | 0 Com_ha_close | 0 Com_ha_open | 0 Com_ha_read | 0 Com_help | 0 Com_insert | 0 Com_insert_select | 0 Com_kill | 0 Com_load | 0 Com_load_master_data | 0 Com_load_master_table | 0 Com_lock_tables | 0 Com_optimize | 0 Com_preload_keys | 0 Com_prepare_sql | 0 Com_purge | 0 Com_purge_before_date | 0 Com_rename_table | 0 Com_repair | 0 Com_replace | 0 Com_replace_select | 0 Com_reset | 0 Com_restore_table | 0 Com_revoke | 0 Com_revoke_all | 0 Com_rollback | 0 Com_savepoint | 0 Com_select | 7 Com_set_option | 0 |
M:\mySQL\bin>mysqladmin -h slayer variables
Variable_name Value auto_increment_increment | 1 auto_increment_offset | 1 automatic_sp_privileges | ON back_log | 50 basedir | C:\Program Files\MySQL\MySQL Server 5.0\ binlog_cache_size | 32768 bulk_insert_buffer_size | 8388608 character_set_client | latin1 character_set_connection | latin1 character_set_database | latin1 character_set_results | latin1 character_set_server | latin1 character_set_system | utf8 character_sets_dir | C:\Program Files\MySQL\MySQL Server 5.0\s/ collation_connection | latin1_swedish_ci collation_database | latin1_swedish_ci collation_server | latin1_swedish_ci completion_type | 0 concurrent_insert | ON connect_timeout | 5 datadir | C:\Program Files\MySQL\MySQL Server 5.0\D date_format | %Y-%m-%d datetime_format | %Y-%m-%d %H:%i:%s time_format | %H:%i:%s default_week_format | 0 delay_key_write | ON delayed_insert_limit | 100 delayed_insert_timeout | 300 delayed_queue_size | 1000 expire_logs_days | 0 flush | OFF flush_time | 1800 ft_boolean_syntax | + -><()~*:""& ft_max_word_len | 84 ft_min_word_len | 4 ft_query_expansion_limit | 20 ft_stopword_file | (built-in) group_concat_max_len | 1024 have_archive | NO have_bdb | NO have_compress | YES have_crypt | NO have_csv | NO have_example_engine | NO have_federated_engine | NO have_geometry | YES have_innodb | YES have_isam | NO have_ndbcluster | NO have_openssl | NO have_query_cache | YES have_raid | NO have_rtree_keys | YES have_symlink | YES init_connect init_file init_slave innodb_additional_mem_pool_size | 2097152 innodb_autoextend_increment | 8 innodb_buffer_pool_awe_mem_mb | 0 innodb_buffer_pool_size | 8388608 innodb_checksums | ON innodb_concurrency_tickets | 500 innodb_data_file_path | ibdata1:10M:autoextend innodb_data_home_dir innodb_doublewrite | ON innodb_fast_shutdown | ON innodb_file_io_threads | 4 innodb_file_per_table | OFF innodb_flush_log_at_trx_commit| 1 innodb_flush_method innodb_force_recovery | 0 innodb_lock_wait_timeout | 50 innodb_locks_unsafe_for_binlog| OFF innodb_log_arch_dir innodb_log_archive | OFF innodb_log_buffer_size | 1048576 innodb_log_file_size | 10485760 innodb_log_files_in_group | 2 innodb_log_group_home_dir | .\ innodb_max_dirty_pages_pct | 90 innodb_max_purge_lag | 0 innodb_mirrored_log_groups | 1 innodb_open_files | 300 innodb_sync_spin_loops | 20 innodb_table_locks | ON innodb_support_xa | ON innodb_thread_concurrency | 8 innodb_thread_sleep_delay | 10000 interactive_timeout | 28800 join_buffer_size | 131072 key_buffer_size | 8388608 key_cache_age_threshold | 300 key_cache_block_size | 1024 key_cache_division_limit | 100 language | C:\Program Files\MySQL\MySQL Server 5.0\s large_files_support | ON large_pages | OFF large_page_size | 0 license | GPL local_infile | ON log | OFF log_bin | OFF log_error | .\slayer.err log_slave_updates | OFF log_slow_queries | OFF log_update | OFF log_warnings | 1 long_query_time | 10 low_priority_updates | OFF lower_case_file_system | OFF lower_case_table_names | 1 |
+---------------------------+------ Variable_name |Value +---------------------------+----- Aborted_clients | 0 Aborted_connects | 1 Binlog_cache_disk_use | 0 Binlog_cache_use | 0 Bytes_received | 992 Bytes_sent | 5871 Com_admin_commands | 0 Com_alter_db | 0 Com_alter_table | 0 Com_analyze | 0 Com_backup_table | 0 Com_begin | 0 Com_change_db | 3 Com_change_master | 0 Com_check | 0 Com_checksum | 0 Com_commit | 0 Com_create_db | 1 Com_create_function | 0 Com_create_index | 0 Com_create_table | 0 Com_dealloc_sql | 0 Com_delete | 0 Com_delete_multi | 0 Com_do | 0 Com_drop_db | 0 Com_drop_function | 0 Com_drop_index | 0 Com_drop_table | 0 Com_drop_user | 0 Com_execute_sql | 0 Com_flush | 0 Com_grant | 0 Com_ha_close | 0 Com_ha_open | 0 Com_ha_read | 0 Com_help | 0 Com_insert | 0 Com_insert_select | 0 Com_kill | 0 Com_load | 0 Com_load_master_data | 0 Com_load_master_table | 0 Com_lock_tables | 0 Com_optimize | 0 Com_preload_keys | 0 Com_prepare_sql | 0 Com_purge | 0 Com_purge_before_date | 0 Com_rename_table | 0 Com_repair | 0 Com_replace | 0 Com_replace_select | 0 Com_reset | 0 Com_restore_table | 0 Com_revoke | 0 Com_revoke_all | 0 Com_rollback | 0 Com_savepoint | 0 Com_select | 7 Com_set_option | 0 Com_show_binlog_events | 0 Com_show_binlogs | 0 Com_show_charsets | 0 Com_show_collations | 0 Com_show_column_types | 0 Com_show_create_db | 0 Com_show_create_table | 0 Com_show_databases | 0 Com_show_errors | 0 Com_show_fields | 0 Com_show_grants | 0 Com_show_innodb_status | 0 Com_show_keys | 0 Com_show_logs | 0 Com_show_master_status | 0 Com_show_new_master | 0 Com_show_open_tables | 0 Com_show_privileges | 0 Com_show_processlist | 3 Com_show_slave_hosts | 0 Com_show_slave_status | 0 Com_show_status | 3 Com_show_storage_engines | 0 Com_show_tables | 0 Com_show_variables | 0 Com_show_warnings | 0 Com_slave_start | 0 Com_slave_stop | 0 Com_truncate | 0 Com_unlock_tables | 0 Com_update | 0 Com_update_multi | 0 Connections | 10 Created_tmp_disk_tables | 0 Created_tmp_files | 3 Created_tmp_tables | 0 Delayed_errors | 0 Delayed_insert_threads | 0 Delayed_writes | 0 Flush_commands | 1 Handler_commit | 0 Handler_delete | 0 Handler_discover | 0 Handler_read_first | 2 Handler_read_key | 0 Handler_read_next | 0 Handler_read_prev | 0 Handler_read_rnd | 0 Handler_read_rnd_next | 10 Handler_rollback | 0 Handler_update | 0 Handler_write | 0 Key_blocks_not_flushed | 0 Key_blocks_unused | 7173 Key_blocks_used | 0 Key_read_requests | 0 Key_reads | 0 Key_write_requests | 0 Key_writes | 0 Max_used_connections | 1 Not_flushed_delayed_rows | 0 Open_files | 5 Open_streams | 0 Open_tables | 0 Opened_tables | 11 Qcache_free_blocks | 0 Qcache_free_memory | 0 Qcache_hits | 0 Qcache_inserts | 0 Qcache_lowmem_prunes | 0 Qcache_not_cached | 0 Qcache_queries_in_cache | 0 Qcache_total_blocks | 0 Questions | 23 Rpl_status | 0 Select_full_join | 0 Select_full_range_join | 0 Select_range | 0 Select_range_check | 0 Select_scan | 0 Slave_open_temp_tables | 0 Slave_running | 0 Slave_retried_transactions | 0 Slow_launch_threads | 0 Slow_queries | 0 Sort_merge_passes | 0 Sort_range | 0 Sort_rows | 0 Sort_scan | 0 Table_locks_immediate | 11 Table_locks_waited | 0 Threads_cached | 0 Threads_connected | 1 Threads_created | 1 Threads_running | 1 Uptime | 58970 |