我在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”文件,发现完全相同的配置。
我还要看什么?
关于海梅
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