局域网Mysql连接

局域网中的MySQL连接没有什么技术难度

1.开防火墙

  无论Linux还是Windows,必须先开防火墙,打开本地Mysql端口

2.指定IP地址连接即可

最好是跳过密码

附上my.ini  !这是比较全面的ini配置,从源文件中删掉注释,添加跳过密码的完美ini!


[client]
port=3306
[mysql]
default-character-set=utf8
[client]
default-character-set=utf8
[mysqld]
character-set-server = utf8
[mysqld]
skip-grant-tables
port=3306
basedir="C:/Program Files/MySQL/MySQL Server 5.5/"
datadir="C:/ProgramData/MySQL/MySQL Server 5.5/Data/"
default-storage-engine=INNODB
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
max_connections=100
query_cache_size=0
table_cache=256
tmp_table_size=18M
thread_cache_size=8
myisam_max_sort_file_size=100G
myisam_sort_buffer_size=35M
key_buffer_size=25M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=256K
innodb_additional_mem_pool_size=2M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=1M
innodb_buffer_pool_size=47M
innodb_log_file_size=24M
innodb_thread_concurrency=10

猜你喜欢

转载自www.cnblogs.com/Cherrio/p/11810655.html