欢迎来到云服务器

Directadmin Linux面板

插入主机时出错:字段'authentication_string'没有默认值

2018年1月25日更新:
添加了一个实际的修复程序来检查,并在添加访问主机时明确设置空白的authentication_string值。
https://www.directadmin.com/features.php?id=2083



old

在设置主机时,DA没有为authentication_string指定值的MariaDB 10.2.x中的设计更改。
它可能会抛出这个错误:

Error inserting host: Field 'authentication_string' doesn't have a default value

作为一种解决方法,我们可以使用以下调用SQL命令来设置默认值:

ALTER TABLE mysql.user ALTER authentication_string SET DEFAULT '';

在phpMyAdmin中以da_admin或root用户身份运行该sql。
 
不要将它与MySQL 5.7混淆,它使用authentication_string完全替换密码列。
为此,你要DA使用mysql_milestone_16 = 1
腾讯云代理

Copyright © 2003-2021 MFISP.COM. 国外vps服务器租用 梦飞云服务器租用 版权所有 粤ICP备11019662号