免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2297 | 回复: 6
打印 上一主题 下一主题

装了proxy的mysql,sqlyog就无法连接 [复制链接]

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-27 17:35 |只看该作者 |倒序浏览
自从安装完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

论坛徽章:
0
2 [报告]
发表于 2011-12-27 17:41 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
3 [报告]
发表于 2011-12-28 09:38 |只看该作者
回复 2# kerlion

对,本机安装就有问题吗?
   

论坛徽章:
0
4 [报告]
发表于 2011-12-28 17:07 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2011-12-29 11:09 |只看该作者
回复 4# kerlion

已经没有127.0.0.1和localhost的host值的用户了,我已经都删除了....
   

论坛徽章:
0
6 [报告]
发表于 2011-12-29 13:26 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
7 [报告]
发表于 2011-12-29 15:08 |只看该作者
我重做权限表了,现在好了,谢谢kerlion兄弟....
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP