1
我有一个与流浪汉上的远程连接到mysql的问题。我在MariaDB中使用MySQL。流浪汉 - 远程连接到mysql - 外部流浪狗ssh连接
我有用户根 with permisssions and server '%'。
在my.conf评论bind_address除去skip_networking。
本地它的工作正常。我关掉了防火墙保护在我的eset点头。
我什么时候可以尝试连接:
mysql -u root -h localhost -P 3306
显示:
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
MySQL工作台没有工作过,呈三角状的PHPStorm数据库连接。
[09:41 ]-[[email protected]]-[/home/vagrant]
# lsof -i -P | grep :3306
47:mysqld 20792 mysql 22u IPv6 51546 0t0 TCP *:3306 (LISTEN)
虽然同叫上面的命令工作很长的时间 - 大约一分钟后的结果显示出来。
下面的MySQL服务器变量:
aria_block_size \t 8192
aria_checkpoint_interval \t 30
aria_checkpoint_log_activity \t 1048576
aria_encrypt_tables \t OFF
aria_force_start_after_recovery_failures \t 0
aria_group_commit \t none
aria_group_commit_interval \t 0
aria_log_file_size \t 1073741824
aria_log_purge_type \t immediate
aria_max_sort_file_size \t 9223372036853727232
aria_page_checksum \t ON
aria_pagecache_age_threshold \t 300
aria_pagecache_buffer_size \t 134217728
aria_pagecache_division_limit \t 100
aria_pagecache_file_hash_size \t 512
aria_recover \t NORMAL
aria_repair_threads \t 1
aria_sort_buffer_size \t 268434432
aria_stats_method \t nulls_unequal
aria_sync_log_dir \t NEWFILE
aria_used_for_temp_tables \t ON
auto_increment_increment \t 1
auto_increment_offset \t 1
autocommit \t ON
automatic_sp_privileges \t ON
back_log \t 80
basedir \t /usr
big_tables \t OFF
binlog_annotate_row_events \t OFF
binlog_cache_size \t 32768
binlog_checksum \t NONE
binlog_commit_wait_count \t 0
binlog_commit_wait_usec \t 100000
binlog_direct_non_transactional_updates \t OFF
binlog_format \t STATEMENT
binlog_optimize_thread_scheduling \t ON
binlog_row_image \t FULL
binlog_stmt_cache_size \t 32768
bulk_insert_buffer_size \t 8388608
character_set_client \t utf8mb4
character_set_connection \t utf8mb4
character_set_database \t latin1
character_set_filesystem \t binary
character_set_results \t utf8mb4
character_set_server \t latin1
character_set_system \t utf8
character_sets_dir \t /usr/share/mysql/charsets/
collation_connection \t utf8mb4_general_ci
collation_database \t latin1_swedish_ci
collation_server \t latin1_swedish_ci
completion_type \t NO_CHAIN
concurrent_insert \t AUTO
connect_timeout \t 10
datadir \t /var/lib/mysql/
date_format \t %Y-%m-%d
datetime_format \t %Y-%m-%d %H:%i:%s
deadlock_search_depth_long \t 15
deadlock_search_depth_short \t 4
deadlock_timeout_long \t 50000000
deadlock_timeout_short \t 10000
debug_no_thread_alarm \t OFF
default_master_connection \t
default_regex_flags \t
default_storage_engine \t InnoDB
default_tmp_storage_engine \t
default_week_format \t 0
delay_key_write \t ON
delayed_insert_limit \t 100
delayed_insert_timeout \t 300
delayed_queue_size \t 1000
div_precision_increment \t 4
encrypt_binlog \t OFF
encrypt_tmp_disk_tables \t OFF
encrypt_tmp_files \t OFF
enforce_storage_engine \t
error_count \t 0
event_scheduler \t OFF
expensive_subquery_limit \t 100
expire_logs_days \t 10
explicit_defaults_for_timestamp \t OFF
external_user \t
extra_max_connections \t 1
extra_port \t 0
flush \t OFF
flush_time \t 0
foreign_key_checks \t ON
ft_boolean_syntax \t + -><()~*:""&|
ft_max_word_len \t 84
ft_min_word_len \t 4
ft_query_expansion_limit \t 20
ft_stopword_file \t (built-in)
general_log \t OFF
general_log_file \t vagrant.log
group_concat_max_len \t 1024
gtid_binlog_pos \t
gtid_binlog_state \t
gtid_current_pos \t
gtid_domain_id \t 0
gtid_ignore_duplicates \t OFF
gtid_seq_no \t 0
gtid_slave_pos \t
gtid_strict_mode \t OFF
have_compress \t YES
have_crypt \t YES
have_dynamic_loading \t YES
have_geometry \t YES
have_openssl \t YES
have_profiling \t YES
have_query_cache \t YES
have_rtree_keys \t YES
have_ssl \t DISABLED
have_symlink \t YES
histogram_size \t 0
histogram_type \t SINGLE_PREC_HB
host_cache_size \t 279
hostname \t vagrant
identity \t 0
ignore_builtin_innodb \t OFF
ignore_db_dirs \t
in_transaction \t 0
init_connect \t
init_file \t
init_slave \t
innodb_adaptive_flushing \t ON
innodb_adaptive_flushing_lwm \t 10.000000
innodb_adaptive_hash_index \t ON
innodb_adaptive_hash_index_partitions \t 1
innodb_adaptive_max_sleep_delay \t 150000
innodb_additional_mem_pool_size \t 8388608
innodb_api_bk_commit_interval \t 5
innodb_api_disable_rowlock \t OFF
innodb_api_enable_binlog \t OFF
innodb_api_enable_mdl \t OFF
innodb_api_trx_level \t 0
innodb_autoextend_increment \t 64
innodb_autoinc_lock_mode \t 1
innodb_background_scrub_data_check_interval \t 3600
innodb_background_scrub_data_compressed \t OFF
innodb_background_scrub_data_interval \t 604800
innodb_background_scrub_data_uncompressed \t OFF
innodb_buf_dump_status_frequency \t 0
innodb_buffer_pool_dump_at_shutdown \t OFF
innodb_buffer_pool_dump_now \t OFF
innodb_buffer_pool_dump_pct \t 100
innodb_buffer_pool_filename \t ib_buffer_pool
innodb_buffer_pool_instances \t 8
innodb_buffer_pool_load_abort \t OFF
innodb_buffer_pool_load_at_startup \t OFF
innodb_buffer_pool_load_now \t OFF
innodb_buffer_pool_populate \t OFF
innodb_buffer_pool_size \t 134217728
innodb_change_buffer_max_size \t 25
innodb_change_buffering \t all
innodb_checksum_algorithm \t INNODB
innodb_checksums \t ON
innodb_cleaner_lsn_age_factor \t HIGH_CHECKPOINT
innodb_cmp_per_index_enabled \t OFF
innodb_commit_concurrency \t 0
innodb_compression_algorithm \t none
innodb_compression_failure_threshold_pct \t 5
innodb_compression_level \t 6
innodb_compression_pad_pct_max \t 50
innodb_concurrency_tickets \t 5000
innodb_corrupt_table_action \t assert
innodb_data_file_path \t ibdata1:12M:autoextend
innodb_data_home_dir \t
innodb_default_encryption_key_id \t 1
innodb_defragment \t OFF
innodb_defragment_fill_factor \t 0.900000
innodb_defragment_fill_factor_n_recs \t 20
innodb_defragment_frequency \t 40
innodb_defragment_n_pages \t 7
innodb_defragment_stats_accuracy \t 0
innodb_disable_sort_file_cache \t OFF
innodb_disallow_writes \t OFF
innodb_doublewrite \t ON
innodb_empty_free_list_algorithm \t BACKOFF
innodb_encrypt_log \t OFF
innodb_encrypt_tables \t OFF
innodb_encryption_rotate_key_age \t 1
innodb_encryption_rotation_iops \t 100
innodb_encryption_threads \t 0
innodb_fake_changes \t OFF
innodb_fast_shutdown \t 1
innodb_fatal_semaphore_wait_threshold \t 600
innodb_file_format \t Antelope
innodb_file_format_check \t ON
innodb_file_format_max \t Antelope
innodb_file_per_table \t ON
innodb_flush_log_at_timeout \t 1
innodb_flush_log_at_trx_commit \t 1
innodb_flush_method \t
innodb_flush_neighbors \t 1
innodb_flushing_avg_loops \t 30
innodb_force_load_corrupted \t OFF
innodb_force_primary_key \t OFF
innodb_force_recovery \t 0
innodb_foreground_preflush \t EXPONENTIAL_BACKOFF
innodb_ft_aux_table \t
innodb_ft_cache_size \t 8000000
innodb_ft_enable_diag_print \t OFF
innodb_ft_enable_stopword \t ON
innodb_ft_max_token_size \t 84
innodb_ft_min_token_size \t 3
innodb_ft_num_word_optimize \t 2000
innodb_ft_result_cache_limit \t 2000000000
innodb_ft_server_stopword_table \t
innodb_ft_sort_pll_degree \t 2
innodb_ft_total_cache_size \t 640000000
innodb_ft_user_stopword_table \t
innodb_idle_flush_pct \t 100
innodb_immediate_scrub_data_uncompressed \t OFF
innodb_instrument_semaphores \t OFF
innodb_io_capacity \t 200
innodb_io_capacity_max \t 2000
innodb_kill_idle_transaction \t 0
innodb_large_prefix \t OFF
innodb_lock_wait_timeout \t 50
innodb_locking_fake_changes \t ON
innodb_locks_unsafe_for_binlog \t OFF
innodb_log_arch_dir \t ./
innodb_log_arch_expire_sec \t 0
innodb_log_archive \t OFF
innodb_log_block_size \t 512
innodb_log_buffer_size \t 16777216
innodb_log_checksum_algorithm \t INNODB
innodb_log_compressed_pages \t OFF
innodb_log_file_size \t 50331648
innodb_log_files_in_group \t 2
innodb_log_group_home_dir \t ./
innodb_lru_scan_depth \t 1024
innodb_max_bitmap_file_size \t 104857600
innodb_max_changed_pages \t 1000000
innodb_max_dirty_pages_pct \t 75.000000
innodb_max_dirty_pages_pct_lwm \t 0.001000
innodb_max_purge_lag \t 0
innodb_max_purge_lag_delay \t 0
innodb_mirrored_log_groups \t 1
innodb_monitor_disable \t
innodb_monitor_enable \t
innodb_monitor_reset \t
innodb_monitor_reset_all \t
innodb_mtflush_threads \t 8
innodb_old_blocks_pct \t 37
innodb_old_blocks_time \t 1000
innodb_online_alter_log_max_size \t 134217728
innodb_open_files \t 2000
innodb_optimize_fulltext_only \t OFF
innodb_page_size \t 16384
innodb_prefix_index_cluster_optimization \t OFF
innodb_print_all_deadlocks \t OFF
innodb_purge_batch_size \t 300
innodb_purge_threads \t 1
innodb_random_read_ahead \t OFF
innodb_read_ahead_threshold \t 56
innodb_read_io_threads \t 4
innodb_read_only \t OFF
innodb_replication_delay \t 0
innodb_rollback_on_timeout \t OFF
innodb_rollback_segments \t 128
innodb_sched_priority_cleaner \t 19
innodb_scrub_log \t OFF
innodb_scrub_log_speed \t 256
innodb_show_locks_held \t 10
innodb_show_verbose_locks \t 0
innodb_simulate_comp_failures \t 0
innodb_sort_buffer_size \t 1048576
innodb_spin_wait_delay \t 6
innodb_stats_auto_recalc \t ON
innodb_stats_method \t nulls_equal
innodb_stats_modified_counter \t 0
innodb_stats_on_metadata \t OFF
innodb_stats_persistent \t ON
innodb_stats_persistent_sample_pages \t 20
innodb_stats_sample_pages \t 8
innodb_stats_traditional \t ON
innodb_stats_transient_sample_pages \t 8
innodb_status_output \t OFF
innodb_status_output_locks \t OFF
innodb_strict_mode \t OFF
innodb_support_xa \t ON
innodb_sync_array_size \t 1
innodb_sync_spin_loops \t 30
innodb_table_locks \t ON
innodb_thread_concurrency \t 0
innodb_thread_sleep_delay \t 10000
innodb_track_changed_pages \t OFF
innodb_undo_directory \t .
innodb_undo_logs \t 128
innodb_undo_tablespaces \t 0
innodb_use_atomic_writes \t OFF
innodb_use_fallocate \t OFF
innodb_use_global_flush_log_at_trx_commit \t ON
innodb_use_mtflush \t OFF
innodb_use_native_aio \t ON
innodb_use_stacktrace \t OFF
innodb_use_sys_malloc \t ON
innodb_use_trim \t OFF
innodb_version \t 5.6.26-76.0
innodb_write_io_threads \t 4
insert_id \t 0
interactive_timeout \t 28800
join_buffer_size \t 262144
join_buffer_space_limit \t 2097152
join_cache_level \t 2
keep_files_on_create \t OFF
key_buffer_size \t 27262976
key_cache_age_threshold \t 300
key_cache_block_size \t 1024
key_cache_division_limit \t 100
key_cache_file_hash_size \t 512
key_cache_segments \t 0
large_files_support \t ON
large_page_size \t 0
large_pages \t OFF
last_gtid \t
last_insert_id \t 0
lc_messages \t en_US
lc_messages_dir \t
lc_time_names \t en_US
license \t GPL
local_infile \t ON
lock_wait_timeout \t 31536000
locked_in_memory \t OFF
log_bin \t OFF
log_bin_basename \t
log_bin_index \t
log_bin_trust_function_creators \t OFF
log_error \t
log_output \t FILE
log_queries_not_using_indexes \t OFF
log_slave_updates \t OFF
log_slow_filter \t admin,filesort,filesort_on_disk,full_join,full_scan,query_cache,query_cache_miss,tmp_table,tmp_table_on_disk
log_slow_rate_limit \t 1
log_slow_verbosity \t
log_tc_size \t 24576
log_warnings \t 1
long_query_time \t 10.000000
low_priority_updates \t OFF
lower_case_file_system \t OFF
lower_case_table_names \t 0
master_verify_checksum \t OFF
max_allowed_packet \t 16777216
max_binlog_cache_size \t 18446744073709547520
max_binlog_size \t 104857600
max_binlog_stmt_cache_size \t 18446744073709547520
max_connect_errors \t 100
max_connections \t 151
max_delayed_threads \t 20
max_digest_length \t 1024
max_error_count \t 64
max_heap_table_size \t 16777216
max_insert_delayed_threads \t 20
max_join_size \t 18446744073709551615
max_length_for_sort_data \t 1024
max_long_data_size \t 16777216
max_prepared_stmt_count \t 16382
max_relay_log_size \t 104857600
max_seeks_for_key \t 4294967295
max_sort_length \t 1024
max_sp_recursion_depth \t 0
max_statement_time \t 0.000000
max_tmp_tables \t 32
max_user_connections \t 0
max_write_lock_count \t 4294967295
metadata_locks_cache_size \t 1024
metadata_locks_hash_instances \t 8
min_examined_row_limit \t 0
mrr_buffer_size \t 262144
multi_range_count \t 256
myisam_block_size \t 1024
myisam_data_pointer_size \t 6
myisam_max_sort_file_size \t 9223372036853727232
myisam_mmap_size \t 18446744073709551615
myisam_recover_options \t BACKUP
myisam_repair_threads \t 1
myisam_sort_buffer_size \t 134216704
myisam_stats_method \t NULLS_UNEQUAL
myisam_use_mmap \t OFF
mysql56_temporal_format \t ON
net_buffer_length \t 16384
net_read_timeout \t 30
net_retry_count \t 10
net_write_timeout \t 60
old \t OFF
old_alter_table \t OFF
old_mode \t
old_passwords \t OFF
open_files_limit \t 4162
optimizer_prune_level \t 1
optimizer_search_depth \t 62
optimizer_selectivity_sampling_limit \t 100
optimizer_switch \t index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,engine_condition_pushdown=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=on,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on,extended_keys=on,exists_to_in=on
optimizer_use_condition_selectivity \t 1
performance_schema \t OFF
performance_schema_accounts_size \t -1
performance_schema_digests_size \t -1
performance_schema_events_stages_history_long_size \t -1
performance_schema_events_stages_history_size \t -1
performance_schema_events_statements_history_long_size \t -1
performance_schema_events_statements_history_size \t -1
performance_schema_events_waits_history_long_size \t -1
performance_schema_events_waits_history_size \t -1
performance_schema_hosts_size \t -1
performance_schema_max_cond_classes \t 80
performance_schema_max_cond_instances \t -1
performance_schema_max_digest_length \t 1024
performance_schema_max_file_classes \t 50
performance_schema_max_file_handles \t 32768
performance_schema_max_file_instances \t -1
performance_schema_max_mutex_classes \t 200
performance_schema_max_mutex_instances \t -1
performance_schema_max_rwlock_classes \t 40
performance_schema_max_rwlock_instances \t -1
performance_schema_max_socket_classes \t 10
performance_schema_max_socket_instances \t -1
performance_schema_max_stage_classes \t 150
performance_schema_max_statement_classes \t 178
performance_schema_max_table_handles \t -1
performance_schema_max_table_instances \t -1
performance_schema_max_thread_classes \t 50
performance_schema_max_thread_instances \t -1
performance_schema_session_connect_attrs_size \t -1
performance_schema_setup_actors_size \t 100
performance_schema_setup_objects_size \t 100
performance_schema_users_size \t -1
pid_file \t /var/run/mysqld/mysqld.pid
plugin_dir \t /usr/lib/mysql/plugin/
plugin_maturity \t unknown
port \t 3306
preload_buffer_size \t 32768
profiling \t OFF
profiling_history_size \t 15
progress_report_time \t 5
protocol_version \t 10
proxy_user \t
pseudo_slave_mode \t OFF
pseudo_thread_id \t 56
query_alloc_block_size \t 16384
query_cache_limit \t 1048576
query_cache_min_res_unit \t 4096
query_cache_size \t 16777216
query_cache_strip_comments \t OFF
query_cache_type \t ON
query_cache_wlock_invalidate \t OFF
query_prealloc_size \t 24576
rand_seed1 \t 327991277
rand_seed2 \t 782312767
range_alloc_block_size \t 4096
read_buffer_size \t 131072
read_only \t OFF
read_rnd_buffer_size \t 262144
relay_log \t
relay_log_basename \t
relay_log_index \t
relay_log_info_file \t relay-log.info
relay_log_purge \t ON
relay_log_recovery \t OFF
relay_log_space_limit \t 0
replicate_annotate_row_events \t OFF
replicate_do_db \t
replicate_do_table \t
replicate_events_marked_for_skip \t REPLICATE
replicate_ignore_db \t
replicate_ignore_table \t
replicate_wild_do_table \t
replicate_wild_ignore_table \t
report_host \t
report_password \t
report_port \t 3306
report_user \t
rowid_merge_buff_size \t 8388608
secure_auth \t ON
secure_file_priv \t
server_id \t 0
skip_external_locking \t ON
skip_name_resolve \t OFF
skip_networking \t OFF
skip_parallel_replication \t OFF
skip_replication \t OFF
skip_show_database \t OFF
slave_compressed_protocol \t OFF
slave_ddl_exec_mode \t IDEMPOTENT
slave_domain_parallel_threads \t 0
slave_exec_mode \t STRICT
slave_load_tmpdir \t /tmp
slave_max_allowed_packet \t 1073741824
slave_net_timeout \t 3600
slave_parallel_max_queued \t 131072
slave_parallel_mode \t conservative
slave_parallel_threads \t 0
slave_run_triggers_for_rbr \t NO
slave_skip_errors \t OFF
slave_sql_verify_checksum \t ON
slave_transaction_retries \t 10
slave_type_conversions \t
slow_launch_time \t 2
slow_query_log \t OFF
slow_query_log_file \t vagrant-slow.log
socket \t /var/run/mysqld/mysqld.sock
sort_buffer_size \t 2097152
sql_auto_is_null \t OFF
sql_big_selects \t ON
sql_buffer_result \t OFF
sql_log_bin \t ON
sql_log_off \t OFF
sql_mode \t NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
sql_notes \t ON
sql_quote_show_create \t ON
sql_safe_updates \t OFF
sql_select_limit \t 18446744073709551615
sql_slave_skip_counter \t 0
sql_warnings \t OFF
ssl_ca \t /etc/mysql/cacert.pem
ssl_capath \t
ssl_cert \t /etc/mysql/server-cert.pem
ssl_cipher \t
ssl_crl \t
ssl_crlpath \t
ssl_key \t /etc/mysql/server-key.pem
storage_engine \t InnoDB
stored_program_cache \t 256
strict_password_validation \t ON
sync_binlog \t 0
sync_frm \t ON
sync_master_info \t 10000
sync_relay_log \t 10000
sync_relay_log_info \t 10000
system_time_zone \t CET
table_definition_cache \t 400
table_open_cache \t 2000
thread_cache_size \t 8
thread_concurrency \t 10
thread_handling \t one-thread-per-connection
thread_pool_idle_timeout \t 60
thread_pool_max_threads \t 1000
thread_pool_oversubscribe \t 3
thread_pool_size \t 1
thread_pool_stall_limit \t 500
thread_stack \t 262144
time_format \t %H:%i:%s
time_zone \t SYSTEM
timed_mutexes \t OFF
timestamp \t 1457385760.066998
tmp_table_size \t 16777216
tmpdir \t /tmp
transaction_alloc_block_size \t 8192
transaction_prealloc_size \t 4096
tx_isolation \t REPEATABLE-READ
tx_read_only \t OFF
unique_checks \t ON
updatable_views_with_limit \t YES
use_stat_tables \t NEVER
userstat \t OFF
version \t 10.1.11-MariaDB-1~trusty
version_comment \t mariadb.org binary distribution
version_compile_machine \t x86_64
version_compile_os \t debian-linux-gnu
version_malloc_library \t system jemalloc
version_ssl_library \t OpenSSL 1.0.1f 6 Jan 2014
wait_timeout \t 28800
warning_count \t 0
wsrep_osu_method \t TOI
wsrep_auto_increment_control \t ON
wsrep_causal_reads \t OFF
wsrep_certify_nonpk \t ON
wsrep_cluster_address \t
wsrep_cluster_name \t my_wsrep_cluster
wsrep_convert_lock_to_trx \t OFF
wsrep_data_home_dir \t /var/lib/mysql/
wsrep_dbug_option \t
wsrep_debug \t OFF
wsrep_desync \t OFF
wsrep_dirty_reads \t OFF
wsrep_drupal_282555_workaround \t OFF
wsrep_forced_binlog_format \t NONE
wsrep_gtid_domain_id \t 0
wsrep_gtid_mode \t OFF
wsrep_load_data_splitting \t ON
wsrep_log_conflicts \t OFF
wsrep_max_ws_rows \t 131072
wsrep_max_ws_size \t 1073741824
wsrep_mysql_replication_bundle \t 0
wsrep_node_address \t
wsrep_node_incoming_address \t AUTO
wsrep_node_name \t
wsrep_notify_cmd \t
wsrep_on \t OFF
wsrep_patch_version \t wsrep_25.11
wsrep_provider \t none
wsrep_provider_options \t
wsrep_recover \t OFF
wsrep_replicate_myisam \t OFF
wsrep_restart_slave \t OFF
wsrep_retry_autocommit \t 1
wsrep_slave_fk_checks \t ON
wsrep_slave_uk_checks \t OFF
wsrep_slave_threads \t 1
wsrep_sst_auth \t
wsrep_sst_donor \t
wsrep_sst_donor_rejects_queries \t OFF
wsrep_sst_method \t rsync
wsrep_sst_receive_address \t AUTO
wsrep_start_position \t 00000000-0000-0000-0000-000000000000:-1
wsrep_sync_wait \t 0
请帮助,因为我是完全叠加。
编辑// 配置流浪汉的一部分。绑定地址,跳网络,具有权限的用户,从我anitivirus保护 - -
network:
private_network: 192.168.56.101
forwarded_port:
ssh:
host: '22'
guest: '22'
www:
host: '80'
guest: '80'
elasticsearch:
host: '9200'
guest: '9200'
rabbitmq-management:
host: '15672'
guest: '15672'
mysql:
host: '3306'
guest: '3306'
你在哪里运行'mysql'命令?在你的mysql虚拟机里,或者在虚拟机之外的某个地方,试图与虚拟机内的mysql交谈? –
当然在vm之外 - 在vm里面,mysql连接没有问题。 – LuckyLue
那么你需要将主机上的3306端口重定向到vm的ip。你不是在主机“localhost”上运行mysql,所以没有任何东西绑定到vm外的3306端口。 –