设为首页收藏本站 国外访客:

 找回密码
 立即注册
搜索
查看: 19439|回复: 0

[教程/工具] Navicat 连接远程数据库 出现SQL Error (2013): 解决方法

[复制链接]
灌水成绩
19646
120
20240
主题
帖子
积分

等级头衔

ID : 1

管理员

积分成就 威望 : 8 点
贡献 : 9 次
下载币 : 449 枚
在线时间 : 2003 小时
注册时间 : 2013-9-5
最后登录 : 2026-10-23

发表于 2026-4-25 17:09:30 | 显示全部楼层 |阅读模式 IP:广东
免责
解决方法:( q; G* h' g( c  L

' \: ~5 ?' L3 b2 E  n修改MySQL数据库配置文件etc/my.cnf" S. F; z1 w. u% U  `1 f# \
( o- b# T' ~* w# H3 Y
在[mysqld]最下面添加
4 i  H" w0 T/ F
; Q+ Y$ f9 q; J; a+ zskip-name-resolve8 C  G/ [& M5 X9 k! x; u
+ y0 U2 g- X) W- J
# For advice on how to change settings please see  
' M) }$ x9 L0 d2 ^/ [% `! m# |# http://dev.mysql.com/doc/refman/ ... ation-defaults.html   
- K" K3 N1 `4 m* C[mysqld]  * ?/ U9 O/ a1 g- |! k
#  % f# o1 w9 [5 y* D; ?7 Q, H$ O
# Remove leading # and set to the amount of RAM for the most important data  ( _7 u3 A" U, v- G" m4 J: T+ c
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.  6 P, ^$ n. F8 R1 t! j! b5 B, v% f7 W
# innodb_buffer_pool_size = 128M  6 W: H0 d0 a* ]6 K; h
#  
* g% {3 U1 q& B6 v# Remove leading # to turn on a very important data integrity option: , {( e/ _  E0 B4 m  x
logging  % G' P& e4 l' L6 y8 o* @, v
# changes to the binary log between backups.  , b9 c' o, _7 V& Q  X+ [
# log_bin  
$ s" r" M" ?8 `6 ?) h#  
% c7 G2 [) _" C3 p% [, R6 I  I# Remove leading # to set options mainly useful for reporting servers.  
- D' l6 U, V, J5 N% j3 j6 @5 v$ X; c4 h# The server defaults are faster for transactions and fast SELECTs.  
2 k. ]/ O. m1 ^! y# Adjust sizes as needed, experiment to find the optimal values.  
3 ?& ]" O. L) B0 X# join_buffer_size = 128M  5 T! d& z" D  @6 T6 w
# sort_buffer_size = 2M  + R( b, c, s+ i( ^+ ]3 [* t
# read_rnd_buffer_size = 2M  ) c+ l3 d' s! j2 y1 ?7 w
datadir=/var/lib/mysql  s3 n$ c6 [% \2 \' P& X9 j
ocket=/var/lib/mysql/mysql.sock   
- g3 R( W8 W# |9 d4 D3 E# Disabling symbolic-links is recommended to prevent
0 ?! U" Y7 C# [+ |7 a# [: Aassorted security risks  
: D8 D2 ^  ~0 h" `6 g- S% esymbolic-links=0   
' n/ N) z; N4 V  |# Recommended in standard MySQL setup  & l1 R1 ?# ]) s5 D+ n; w& o* Y- I
#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES   4 p' H# n( \+ l$ `0 }4 t& {( i1 c
max_allowed_packet      = 32M  4 E' R+ ?6 D) Q  R9 b
max_connections         = 1000  
5 v1 A1 f1 U( M( `' Lmax_connect_errors      = 2000  
0 P! X8 ~2 B% C6 S# cskip-name-resolve  
# c, A; I0 a& i+ ]+ y[mysqld_safe]  
* Z0 S% Y" t8 i0 R3 E5 s% O& @8 Z% [log-error=/var/log/mysqld.log  ; L; ]5 Y' t4 n" u& o, H# [
pid-file=/var/run/mysqld/mysqld.pid: g9 d" S4 H1 ?" w
然后重启MySQL服务
2 ]# E2 M" k9 K  F( j8 S' ]7 L& C1 k  G% E* b) S- G  q' d8 P
service mysqld restart
" q/ ^4 b! c7 E  g4 \& ~! _& I0 X+ `& I
免责
帖子地址 打造全网最多免费游戏网站,部分资源失效,私聊站长补
今日访客 列表模式
10月上白班,问题处理时间等晚上
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|蔡州手游 |网站地图

GMT+8, 2026-10-24 12:11

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表