发布日期: 2026-09-07
版本号: v6.0.2

修复了连接前校验服务器名称全部部分、清理服务器返回的连接 id 以防范 XSS、新建检查约束失败时不再删除旧约束、多行文本截断时用省略号替换整末行、按语言习惯格式化数字等问题;修改存储过程时改为保留全部特性并在表单中编辑定义;自动补全加快了数据库列的获取并扩展到存储过程、事件和视图定义中;编辑时修复了出错后枚举值丢失、合法日期时间被误判为过长的回归,宽表横向滚动时保留"加载更多"按钮;SQL 命令会跳过仅含注释的语句;界面支持 RTL 镜像边框对齐边距,并用 service worker 缓存编译版资源。 MySQL 方面显示检查约束时去掉了 information_schema 的多余转义,不再在后续表注释中重复不可读表的错误、而是把错误显示在其注释旁,支持 MySQL 9 的 LANGUAGE JAVASCRIPT 例程并链接对应版本文档;MariaDB 将不可读表显示为带错误的表而非视图;PostgreSQL 修复了无唯一键分区表选中行的编辑删除问题;PostgreSQL PDO 修复布尔值导出;SQLite 能从单行建表语句中获取生成列与排序规则并支持 FTS5 等虚拟表;MS SQL 支持用户自定义类型取基类型、提供服务器全部数据类型、新增检查按钮并链接文档;Oracle 亦链接所用版本文档;ClickHouse 与 Elasticsearch 只输出各自的错误以修复安全漏洞并恢复语法高亮;Firebird 提供语法高亮并移除其无法支持的状态页;修复了多个驱动在编译版 Adminer 中加载失败及调用缺失函数导致致命错误的问题。 插件方面新增 serviceWorker() 方法用于禁用 service worker,Db::attach() 改为传入解析后的方案主机端口套接字路径而非字符串,新增 Driver::supportsAlterTable()、shadowTables()、fulltextSql() 方法和 fulltextOperator 属性,TableStatus 的 partition 键更名为 dependent 以标记从属表,Driver::$operators 属性改为 operators() 方法;内部标记了仅用于编译版或开发版的代码。

更新内容 (中文)

  • 连接前验证服务器名称的所有部分(GHSA-rwxg-xph9-82cj,5.5.1 引入的回归问题)
  • 清理服务器返回的连接 id(GHSA-7c5h-q78c-fpxx,XSS)
  • 当无法创建新约束时,不删除旧的检查约束
  • 缩短多行文本(如长 SQL 命令)时,用省略号替换整个最后一行
  • 按照所用语言的约定格式化数字
  • 修改例程:保留所有特性并在表单中编辑,而不是在定义中编辑
  • 自动补全:更快获取数据库的列(bug #1328)
  • 自动补全:在例程、事件和视图的定义中同样提供
  • 编辑:出错后保留用户选择的枚举值(5.4.0 引入的回归问题)
  • 编辑:不将有效的日期或时间值标记为过长,例如 datetime(3) 列中的值
  • 选择:横向滚动宽表时保持"加载更多数据"在屏幕上可见
  • SQL 命令:跳过仅包含注释的命令(bug #1331)
  • RTL:镜像边框、对齐、外边距和内边距
  • 在 service worker 中缓存编译版本的资源
  • MySQL:显示检查约束子句时去掉 information_schema 添加的额外转义
  • MySQL:不在后续表的注释中重复不可读表的错误
  • MySQL:在表的注释旁显示不可读表的错误
  • MySQL 9:创建使用 LANGUAGE JAVASCRIPT 的例程
  • MySQL 26.7:链接所用版本的文档
  • MariaDB:将不可读表显示为带错误的表,而不是视图
  • PostgreSQL:没有唯一键时,不在其他分区中编辑和删除所选行(bug #1326)
  • PostgreSQL PDO:修复布尔值的导出(bug #1330,5.4.4 引入的回归问题)
  • SQLite:从单行 CREATE TABLE 中同样获取生成列和排序规则
  • SQLite:支持 FTS5 及其他虚拟表
  • MS SQL:获取使用用户自定义类型声明的列的基础类型
  • MS SQL:提供服务器支持的所有数据类型,例如 uniqueidentifier(bug #1327)
  • MS SQL:添加数据库检查按钮
  • MS SQL:链接所用版本的文档
  • Oracle:链接所用版本的文档
  • ClickHouse:仅打印来自 ClickHouse 的错误(GHSA-77qq-q8fv-x45v,6.0.0 引入的回归问题)
  • ClickHouse:高亮显示查询
  • Elasticsearch:仅打印来自 Elasticsearch 的错误(GHSA-q8h3-4cx4-prgm,4.16.0 引入的回归问题)
  • Firebird:高亮显示查询
  • ClickHouse、IGDB、Redis、SimpleDB:修复编译版 Adminer 中驱动的加载问题(bug #1325)
  • Elasticsearch、Firebird、IGDB、IMAP、MongoDB、Redis、SimpleDB:修复调用驱动中缺失函数的页面时发生的致命错误
  • Firebird:移除状态页,驱动无法提供该功能

插件

  • serviceWorker() 方法用于禁用 service worker
  • Db::attach() 接收解析为 scheme、host、port、socket 和 path 的服务器,而不是字符串
  • 方法 Driver::supportsAlterTable()、Driver::shadowTables()、Driver::fulltextSql() 和属性 Driver::$fulltextOperator
  • TableStatus 键 ‘partition’ 更名为 ‘dependent’,它也标记属于另一张表的表
  • 属性 Driver::$operators 被方法 Driver::operators() 取代

内部

  • 标记仅在编译版本或仅在开发版本中使用的代码

https://www.adminer.org/#download

更新内容 (原始)

  • Verify all parts of the server name before connecting (GHSA-rwxg-xph9-82cj, regression from 5.5.1)
  • Sanitize the connection id returned by the server (GHSA-7c5h-q78c-fpxx, XSS)
  • Do not drop the old check constraint when the new one cannot be created
  • Replace the whole last line by the ellipsis when shortening a multi-line text, e.g. a long SQL command
  • Format numbers according to the conventions of the used language
  • Alter routine: Preserve all characteristics and edit them in a form instead of in the definition
  • Autocomplete: Get the columns of the database faster (bug #1328)
  • Autocomplete: Offer also in the definition of a routine, an event and a view
  • Edit: Keep the enum value selected by the user after an error (regression from 5.4.0)
  • Edit: Do not highlight a valid date or time value as too long, e.g. in a datetime(3) column
  • Select: Keep “Load more data” on the screen when scrolling a wide table horizontally
  • SQL command: Skip a command with comments only (bug #1331)
  • RTL: Mirror the borders, alignment, margins and paddings
  • Cache the assets of the compiled version in a service worker
  • MySQL: Display the check constraint clause without the extra escaping added by information_schema
  • MySQL: Do not repeat the error of an unreadable table in the comments of the following tables
  • MySQL: Display the error of an unreadable table next to its comment
  • MySQL 9: Create routines with LANGUAGE JAVASCRIPT
  • MySQL 26.7: Link the documentation of the used version
  • MariaDB: Display an unreadable table as a table with the error instead of as a view
  • PostgreSQL: Do not edit and delete the selected row without a unique key in other partitions (bug #1326)
  • PostgreSQL PDO: Fix export of boolean values (bug #1330, regression from 5.4.4)
  • SQLite: Get the generated columns and collations also from a single-line CREATE TABLE
  • SQLite: Support FTS5 and other virtual tables
  • MS SQL: Get the base type of a column declared with a user-defined type
  • MS SQL: Offer all the data types supported by the server, e.g. uniqueidentifier (bug #1327)
  • MS SQL: Add the database Check button
  • MS SQL: Link the documentation of the used version
  • Oracle: Link the documentation of the used version
  • ClickHouse: Print only errors from ClickHouse (GHSA-77qq-q8fv-x45v, regression from 6.0.0)
  • ClickHouse: Highlight the queries
  • Elasticsearch: Print only errors from Elasticsearch (GHSA-q8h3-4cx4-prgm, regression from 4.16.0)
  • Firebird: Highlight the queries
  • ClickHouse, IGDB, Redis, SimpleDB: Fix loading the driver in the compiled Adminer (bug #1325)
  • Elasticsearch, Firebird, IGDB, IMAP, MongoDB, Redis, SimpleDB: Fix a fatal error on the pages calling a function missing in the driver
  • Firebird: Remove the status page, the driver cannot provide it

Plugins

  • Method serviceWorker() to disable the service worker
  • Db::attach() gets the server parsed to scheme, host, port, socket and path instead of the string
  • Methods Driver::supportsAlterTable(), Driver::shadowTables(), Driver::fulltextSql() and property Driver::$fulltextOperator
  • TableStatus key ‘partition’ renamed to ‘dependent’, it marks also the tables belonging to another table
  • Property Driver::$operators replaced by method Driver::operators()

Internal

  • Mark the code used only in the compiled or only in the development version

https://www.adminer.org/#download

下载链接