mysql连接报错 Lost connection to MySQL server at 'sending authentication information', system error: 32

如果mysql连接报错Lost connection to MySQL server at ‘sending authentication information‘, system error: 32

一种可能的原因是系统打开文件数过多

mac系统默认是256个,如果数据库打开文件过多,会因为系统限制而报错。

解决方案有两种:

1. 修改mysql配置,默认是一个表一个文件,可以修改为一个库一个文件

修改mysql配置文件/etc/my.cnf,添加如下配置,删除原来的数据库重新生成,记得提前dump数据

[mysqld]
innodb_file_per_table = OFF

2. 修改系统最大文件数

mac系统执行如下命令

sudo launchctl limit maxfiles 65536 200000

mysql连接报错 Lost connection to MySQL server at 'sending authentication information', system error: 32

原文地址:https://www.cnblogs.com/chenkeyu/p/12368598.html

时间: 2024-08-29 22:55:52

mysql连接报错 Lost connection to MySQL server at 'sending authentication information', system error: 32的相关文章

mysql连接报错 2003-10038最快解决方法

mysql连接报错2003-10038没有启动MYSQLcmd启动mysql无效的原因手动启动MySQL的方式:点击我的电脑->控制->文件->服务找到要开启的服务1. 必须要使用管理员身份运行cmd程序那么如何用管理员身份来运行cmd程序呢? 法一: .在开始菜单的搜索框找cmd.exe,单击右键选择属性,并选择以管理员身份运行法二: 创建命令提示符(cmd.exe)的桌面快捷方式,单击右键选择属性,并选择以管理员身份运行,确定. 以后直接使用快捷方式打开,这样再输入net start

mysql连接报错 ERROR 2002 (HY000): Can't connect to local MySQL server through socket

安装完mysql连接报错: [[email protected] app]# mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) [[email protected] app]# mysql -uroot -p Enter password:  ERROR 2002 (HY000): Can't connect to local M

mac mysql连接报错ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

找了半天 又是kill进程,又是改设置文件,又是重启电脑,都不管用 翻到stackoverflow上的解决方案,实施成功: 原文链接:https://stackoverflow.com/questions/13480170/access-denied-for-mysql-error-1045 To restore it: Stop mysqld deamons. $ sudo service mysqld stop Go to mysql/bin directory $ cd /usr/bin

12月12 mysql连接报错

一.mysql连接报错 mysql5.5 springboot2.0 The server time zone value '?D1ú±ê×?ê±??' is unrecognized or represents 修改my.ini 搜索[mysqld]节点在节点下面加上下面这句话 default-time-zone='+08:00' 然后记得重启MySQL的服务,打开cmd窗口登录MySQL执行show variables like '%time_zone%';这句命令 其他方法就是修改连接的u

MySQL存盘阻塞“Lost connection to MySQL server during query”

公测以来的两次全服维护,都遇到了个别服务器停服时间异常长的情况,具体表现为停服流程阻塞在MySQL存盘,待存储数据一直不减少,持续大概一个小时到两个小时之后继续存储,成功停服,并SQLError报错“Lost connection to MySQL server during query”. 这两天同事查询一些资料大致弄清了问题原因,我们服务器停服瞬间会像MySQL发送大量数据进行存储,数据量过大触发了MySQL的net_read_timeout超时,MySQL报错断开连接,而服务器这边无法直接

Mysql连接错误:Lost connection to Mysql server at 'waiting for initial communication packet'

在远程连接mysql的时候,连接不上,出现如下报错:Lost connection to MySQL server at 'waiting for initial communication packet', system error: 0截图如下: 原因分析:mysql开启了DNS的反向解析功能,这样mysql对连接的客户端会进行DNS主机名查找.mysql处理客户端解析过程:1)当mysql的client连过来的时候,服务器会主动去查client的域名.2)首先查找 /etc/hosts 文

使用navicat连接mysql连接错误:Lost connection to Mysql server at 'waiting for initial communication packet'

使用navicat时,报错截图如下: 原因分析: mysql开启了DNS的反向解析功能,这样mysql对连接的客户端会进行DNS主机名查找. mysql处理客户端解析过程: 当mysql的client连过来的时候,服务器会主动去查client的域名. 首先查找 /etc/hosts 文件,搜索域名和IP的对应关系. 如果hosts文件没有,则查找DNS设置,进行DNS反向解析,直到timeout连接失败. mysql的DNS反向解析: mysql接收到连接请求后,获得的是客户端的ip,为了更好的

mysql链接错误:Lost connection to MySQL server at 'reading authorization packet', system error: 0

在远程连接mysql的时候,连接不上,出现如下报错:Lost connection to MySQL server at 'reading authorization packet', system error: 0原因分析:mysql开启了DNS的反向解析功能,这样mysql对连接的客户端会进行DNS主机名查找.mysql处理客户端解析过程:1)当mysql的client连过来的时候,服务器会主动去查client的域名.2)首先查找 /etc/hosts 文件,搜索域名和IP的对应关系.3)如

虚拟机中MySQL连接问题:Lost connection to MySQL server at 'reading initial communication packet, system error: 0 以及 host is not allowed to connect mysql

环境:在VirtualBox中安装了Ubuntu虚拟机,网络使用了NAT模式,开启了端口转发. 局域网内其他计算机访问虚拟机中的MySQL Server出现两个问题: Lost connection to MySQL server at 'reading initial communication packet, system error: 0 以及 host is not allowed to connect mysql 1.解决Lost connection to MySQL server