MariaDB配置

hgqdbh6s  于 2022-11-08  发布在  其他
关注(0)|答案(2)|浏览(164)

我在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”文件,我发现完全相同的配置。
我还能看到什么?
敬上Jaime

bkhjykvo

bkhjykvo1#

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
hfwmuf9z

hfwmuf9z2#

请有玛丽亚数据库版本10.2,然后网站将很容易创建,否则它不会创建。
使用以下命令重新安装mariadb-10.2
1.您可以在这里找到您的密码匙服务器。

  1. sudo添加-apt-存储库'deb [arch=i386,ppc 64 el,amd 64] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu仿生主目录'
  2. sudo apt-get更新
  3. sudo apt-获取安装-y mariadb-服务器-10.2 mariadb-客户端-10.2

相关问题