pacman -S mariadb mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql systemctl start mysql mariadb --initialize-insecure --user=mysql --datadir='./data' mysql -u root
[root@mxd gitrepo]# mysql -u root mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 8 Server version: 11.0.2-MariaDB Arch Linux
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> create user 'gogs'@'localhost' identified by 'passwd'; Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> select user,host from mysql.user; +-------------+-----------+ | User | Host | +-------------+-----------+ | PUBLIC | | | | localhost | | gogs | localhost | | mariadb.sys | localhost | | mysql | localhost | | root | localhost | | | mxd | +-------------+-----------+ 7 rows in set (0.001 sec)