mysql - 使用 mysql 的存储引擎中的存储 28 错误

标签 mysql linux database centos

我的存储有问题。我收到了这个错误

 Got error 28 from storage engine 

我已经检查了存储容量,它仍然可用并且没有满。这可能是什么原因?我已经检查了一切但没有成功

我可能用完了主 mysql 数据目录,或者在 mysql tmp 中。有人可以告诉我如何找到他们的位置以便也检查它吗?

最佳答案

It is possible that I am running out of main mysql data directory, or in the mysql tmp. Can someone tell me how to find their place in order to check for it too ?

长话短说

发出以下命令分别检查服务器数据和临时目录的位置:

SHOW GLOBAL VARIABLES LIKE 'datadir'
SHOW GLOBAL VARIABLES LIKE 'tmpdir'

这些变量的值通常是绝对路径(相对于服务器运行的任何 chroot jail ),但如果它们恰好是相对路径,那么它们将是相对于工作目录的启动服务器的进程。

然而...

根据 The MySQL Data Directory 记录(强调):

The following list briefly describes the items typically found in the data directory ...

Some items in the preceding list can be relocated elsewhere by reconfiguring the server. In addition, the --datadir option enables the location of the data directory itself to be changed. For a given MySQL installation, check the server configuration to determine whether items have been moved.

因此,您可能还希望检查许多其他变量的值,包括:

  • pid_file
  • ssl_%
  • %_log_file
  • innodb_data_home_dir
  • innodb_log_group_home_dir
  • innodb_temp_data_file_path
  • innodb_undo_directory
  • innodb_buffer_pool_filename

如果您的服务器没有响应...

您还可以检查服务器的启动配置。

根据 Specifying Program Options 记录,服务器的启动配置是“通过检查环境变量,然后通过处理选项文件,然后通过检查命令行”确定的,后面的选项优先于前面的选项。

文档还列出了 Option Files Read on Unix and Unix-Like Systems 的位置, 如果你需要它。请注意,服务器读取的那些文件的部分由服务器启动的方式决定,如 Server Command Options 的第二和第三段中所述。 .

关于mysql - 使用 mysql 的存储引擎中的存储 28 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48287447/

相关文章:

linux - vagrant、centos、dhclient 的问题

c - 从 FIFO 读取的程序是否有任何方法可以检测到写入同一 FIFO 的程序已将其关闭?

php - 为什么查询成功但返回0行?

java - Hibernate:创建 Mysql InnoDB 表而不是 MyISAM

mysql - 一个 Mysql 数据库的多个 debezium 连接器

android - 将 sqlite 数据库从设备复制到 PC

sql - Postgres 触发器将许多列组合成一个 JSON 列

mysql - 按 GROUP 限制而不省略重复项?

linux - Ubuntu、BlueZ、枚举配对设备

ruby-on-rails - 在 Heroku 上的 Rails 应用程序之间共享用户数据和登录信息