0

我在我的 Centos 7 服务器上运行这个命令:

frappe@vps [~/frappe-bench]# bench new-site erp.local

但我收到了这个错误:

frappe@vps [~/frappe-bench]# bench new-site erp.local
MySQL root password:
================================================================================
Creation of your site - erp.local failed because MariaDB is not properly
configured to use the Barracuda storage engine.
Please add the settings below to MariaDB's my.cnf, restart MariaDB then
run `bench new-site erp.local` again.


[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4

================================================================================
frappe@vps [~/frappe-bench]#

当我看到 /etc/my.cnf 文件时,我遇到了这个:

!includedir /etc/my.cnf.d

所以,我查看了那个文件夹,然后打开了“settings.cnf”文件,我发现了完全相同的配置。

我还有什么要看的?

问候詹姆

4

1 回答 1

0
add the following information to /etc/mysql/mariadb.cnf

[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4

then 'flush privileges;' MariaDB database
于 2020-02-14T07:16:43.087 回答