Please refer to the procedure below and install MariaDB 10.1.20 or later.
The basic procedure is to connect to MariaDB as root user, create yona user, create DB, and give all permissions of yona user to DB.
Connect to MariaDB with root
yona and set password. ‘yonadan’ is just example, so change it.
create user 'yona'@'localhost' IDENTIFIED BY 'yonadan';
To use UTF8 extended chars, set file format to BARACUDA.
set global innodb_file_format = BARRACUDA; set global innodb_large_prefix = ON; create database yona DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_bin ;
GRANT ALL ON yona.* to 'yona'@'localhost';
Exit to the shell with
exit command and check that yona DB is available and yona user is connected normally.
Note that the letter after the -p is the password created above.
mysql -u yona -p'yonadan' use yona
Please make a /etc/my.cnf file and add the following.
(If you are a mac os user, add the following line to ~/.my.cnf file) Example: https://github.com/yona-projects/yona/blob/next/support-script/mariadb/my.cnf
lower_case_table_name=1is option makes the case of table or column names case insensitive.
[client] default-character-set=utf8mb4 [mysql] default-character-set=utf8mb4 [mysqld] collation-server=utf8mb4_unicode_ci init-connect='SET NAMES utf8mb4' character-set-server=utf8mb4 lower_case_table_names=1 innodb_file_format=barracuda innodb_large_prefix=on
Also, see configuring-mariadb-with-mycnf
Then restart MariaDB to apply the settings.
service mysql restart
Now, let’s start to install Yona!
-- The following is for reference only --
service mysql restart or /etc/init.d/mysql restart or mysql.server restart