- 论坛徽章:
- 1
|
自从安装完mysql-proxy,原来sqlyog可以正常连接,现在一直无法连接。
grant权限没问题,host=‘%’也没问题,连接IP也没有限制,lsof -i:3306也有listening。
奇怪呀奇怪,我把my.cnf打开,哪位高人给指点下?
[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
default-character-set=utf8
port = 3306
skip-locking
skip-external-locking
skip-name-resolve
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 256K
thread_cache_size = 512
max_connections = 1000
table_cache = 2048
sort_buffer_size =4M
read_buffer_size =1M
read_rnd_buffer_size =6M
wait_timeout =18144
net_write_timeout =900
interactive_timeout =7200
key_buffer_size =256M
query_cache_size=32M
query_cache_type=0
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
# Disable Federated by default
#skip-federated
# Replication Master Server (default)
# binary logging is required for replication
#log-bin=mysql-bin
server-id = 1
binlog-do-db =abc
binlog-ignore-db=mysql
log-bin =mysql-bin
[mysqldump]
quick
max_allowed_packet = 16M
# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:
# symbolic-links=0
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[isamchk]
key_buffer = 256M
sort_buffer_size = 256M
read_buffer = 2M
write_buffer = 2M
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid |
|