Please refer to the procedure below and install MariaDB 10.1.20 or later.
- Recommed to use
- Recommed to use
Create user and database after installing DB
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)
- It is supposed to use utf8mb4 to support Unicode 4Byte extension strings.
lower_case_table_name=1is option makes the case of table or column names case insensitive.
- collation-server is criteria options when sorting.
[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 --
If the page does not open properly after working on the DB, check the items below.
service mysql restart or /etc/init.d/mysql restart or mysql.server restart