mysql出现Got error 28 from storage engine错误
2016-03-22 23:47
951 查看
今天晚上碰到app数据库出错
Got error 28 from storage engine
服务程序出现这样的错误
Sql.Data---Error writing file '/tmp/ML2igkHL' (Errcode: 28)---- 在 MySql.Data.MySqlClient.MySqlStream.ReadPacket()
在 MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId)
在 MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
在 MySql.Data.MySqlClient.MySqlDataReader.NextResult()
在 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
在 MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
在 Dapper.SqlMapper.ExecuteCommand(IDbConnection cnn, CommandDefinition& command, Action`2 paramReader)
在 Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command)
在 ZhengXin.Dal.Dal.ReporthtmlDapper.Insert(Reporthtml reporthtml)
在 ZhengXin.Controller.CreditreportController.Obtain()--ip
查了一下,数据库文件所在的盘应该没事,应该是数据库用的临时目录空间不够
linux下tmp目录下文件满了,但是又不敢乱删。之前删过出现过问题
所以我切换了一个大的磁盘 建立了一个tmp目录,给了 chmod +x tmp权限
修改 /etc/my.cnf 加上 tmpdir 指向一个空间大的位置
再次启动出现了错误
于是查看了错误日志
原来是权限没给到mysql角色,再给下权限 启动 就OK了,虚惊一场。
Got error 28 from storage engine
服务程序出现这样的错误
Sql.Data---Error writing file '/tmp/ML2igkHL' (Errcode: 28)---- 在 MySql.Data.MySqlClient.MySqlStream.ReadPacket()
在 MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId)
在 MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
在 MySql.Data.MySqlClient.MySqlDataReader.NextResult()
在 MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
在 MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
在 Dapper.SqlMapper.ExecuteCommand(IDbConnection cnn, CommandDefinition& command, Action`2 paramReader)
在 Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command)
在 ZhengXin.Dal.Dal.ReporthtmlDapper.Insert(Reporthtml reporthtml)
在 ZhengXin.Controller.CreditreportController.Obtain()--ip
查了一下,数据库文件所在的盘应该没事,应该是数据库用的临时目录空间不够
linux下tmp目录下文件满了,但是又不敢乱删。之前删过出现过问题
所以我切换了一个大的磁盘 建立了一个tmp目录,给了 chmod +x tmp权限
修改 /etc/my.cnf 加上 tmpdir 指向一个空间大的位置
再次启动出现了错误
于是查看了错误日志
原来是权限没给到mysql角色,再给下权限 启动 就OK了,虚惊一场。
相关文章推荐
- PL/SQL Developer 工具优化
- Mysql在大型网站的应用架构演变
- MySQL数据库的优化-运维架构师必会高薪技能,笔者近六年来一线城市工作实战经验
- mysql审计插件(运维不在背锅)
- .net 中的 SqlBulkCopy 批量插入会锁表吗?
- PLSQL Developer如何连接远程Oracle数据库
- hadoop hive sql语法解释
- 监控mysql 脚本
- vmware 安装openstack,安装mysql,keyston glance,nova
- SQL Server 监控统计阻塞脚本信息
- 转载:SQL Server高效 -- 设计(ITPUT 讨论汇总
- plsql developer 查看执行计划
- mysql服务器监控参数总结
- zabbix监控MySQL备份成功失败
- mysql中OPTIMIZE TABLE的作用
- SQL SERVER-identity | @@identity | scope_identity
- MYSQL企业常用架构与调优经验分享
- MySQL能够承受上亿万条的数据量的架构
- SqlServer批量插入数据方法--SqlBulkCopy
- 基于percona-monitoring-plugins实现Zabbix的MySQL多端口自动发现监控