1. MariaDB
1.1 Install
①Update the server package
# zypper ref
# zypper up -y
➁Install
# zypper -n install mariadb
➂Initial Settings
# vi /etc/my.cnf
Line 12: Addendum
[mysqld]
character-set-server=utf8
④Check if it is installed
# rpm -qi mariadb
Name : mariadb
Version : 12.3.2
Release : 160100.2.2
Architecture: x86_64
Install Date: Mon 16 Nov 2026 05:11:43 PM JST
Group : Productivity/Databases/Servers
Size : 138740287
License : SUSE-GPL-2.0-with-FLOSS-exception
Signature : RSA/SHA512, Sat 12 Sep 2026 07:30:34 AM JST, Key ID fec28eaf09d9ea69
Source RPM : mariadb-12.3.2-160100.2.2.src.rpm
Build Date : Thu 11 Jun 2026 02:26:23 AM JST
Build Host : reproducible
Packager : https://www.suse.com/
Vendor : SUSE LLC <https://www.suse.com/>
VCS : https://src.suse.de/pool/mariadb?trackingbranch=slfo-1.3#973cf086fb1ad9008962e96b2adfb579a96b76088bf784e55b3c7e8796836b31
URL : https://www.mariadb.org
Summary : Server part of MariaDB
Description :
MariaDB is an open-source, multi-threaded, relational database management
system. It's a backward compatible, drop-in replacement branch of the
MySQL Community Server.
This package only contains the server-side programs.
Distribution: SUSE Linux 16
⑤Starting and Enabling the MariaDB Service
# systemctl start mariadb
# systemctl enable mariadb
Verify the service status and confirm that it is actually operational.
# systemctl status mariadb
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; preset: disabled)
Active: active (running) since Mon 2026-11-16 17:14:22 JST; 45s ago
Invocation: 2104be411ae64d0db71ab7fc60e11cdc
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Main PID: 14577 (mysqld)
Status: "Taking your SQL requests now..."
Tasks: 14 (limit: 2229)
CPU: 1.638s
CGroup: /system.slice/mariadb.service
└─14577 /usr/sbin/mysqld --defaults-file=/etc/my.cnf --user=mysql --socket=/run/mysql/mysql.sock
Nov 16 17:14:21 Lepard mysql-systemd-helper[14527]: you need to be the system 'mysql' user to connect.
Nov 16 17:14:21 Lepard mysql-systemd-helper[14527]: After connecting you can set the password, if you would need to be
Nov 16 17:14:21 Lepard mysql-systemd-helper[14527]: able to connect as any of these users with a password and without sudo
Nov 16 17:14:21 Lepard mysql-systemd-helper[14527]: See the MariaDB Knowledgebase at https://mariadb.com/kb
Nov 16 17:14:21 Lepard mysql-systemd-helper[14527]: Please report any problems at https://mariadb.org/jira
Nov 16 17:14:21 Lepard mysql-systemd-helper[14527]: The latest information about MariaDB is available at https://mariadb.org/.
Nov 16 17:14:21 Lepard mysql-systemd-helper[14527]: Consider joining MariaDB's strong and vibrant community:
Nov 16 17:14:21 Lepard mysql-systemd-helper[14527]: https://mariadb.org/get-involved/
Nov 16 17:14:21 Lepard mysql-systemd-helper[14577]: /usr/sbin/mysqld: Deprecated program name. It will be removed in a future release>
Nov 16 17:14:22 Lepard systemd[1]: Started MariaDB database server.
Active: active (running) Indicates that the service is running.
⑥Security of MariaDB Installation
Change the root user password for the MariaDB server.
# mysql_secure_installation
/usr/bin/mysql_secure_installation: Deprecated program name. It will be removed in a future release, use 'mariadb-secure-installation' instead
NOTE: MariaDB is secure by default. Running this script is mostly
unecessary and it will likely be removed in a future release,
but it is for now preserved for backwards compatibility.
Enter root user password or leave blank:
Enter current password for root (enter for none): [enter]
OK, successfully used password, moving on...
Setting the root password or using the unix_socket ensures that nobody
can log into the MariaDB root user without the proper authorisation.
You already have your root account protected, so you can safely answer 'n'.
Switch to unix_socket authentication [Y/n] Y
Enabled successfully (or at least no errors was emitted)!
Reloading privilege tables..
... Success!
You already have your root account protected, so you can safely answer 'n'.
Change the root password? [Y/n] Y
New password: [Password]
Re-enter new password: [Password]
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n] Y
Query OK, 2 rows affected
SQL executed without errors!
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n] Y
Query OK, 0 rows affected
SQL executed without errors!
By default, MariaDB comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n] Y
- Dropping test database...
Query OK, 0 rows affected
SQL executed without errors!
- Removing privileges on test database...
Query OK, 2 rows affected
SQL executed without errors!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n] Y
... Success!
Cleaning up...
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!
⑥Checking the MariaDB Version
# mariadb -V
mariadb from 12.3.2-MariaDB, client 15.2 for Linux (x86_64) using EditLine wrapper
⑦When Firewalld is enabled and you need to use MariaDB remotely, allow the service.
# firewall-cmd --add-service=mysql --permanent
# firewall-cmd --reload
2. phpMyAdmin Installation
Install phpMyAdmin and configure it to enable MariaDB management via a web browser
① Installation
# zypper install phpMyAdmin phpMyAdmin-apache apache2-mod_php8
②Settings File Edit
# vi /etc/sysconfig/apache2
Line 130 : Addendum
APACHE_MPM="prefork"
③Restart Apache
# systemctl restart apache2
④Access http://[Server IP address]/phpMyAdmin in your browser.
The login screen below will appear:
Username: root
Password: The root user password you set during MariaDB security installation
Click Go.

The phpMyAdmin settings screen will appear below.

1.3 MariaDB Database + User Creation Example
Next, let's create a user, password, and database for WordPress installation.
Database : wp_db
User : wp_user
Paswword : ?WHxx333Yo
# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 27
Server version: 12.3.2-MariaDB MariaDB package
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 database wp_db;
Query OK, 1 row affected (0.015 sec)
MariaDB [(none)]> create user 'wp_user'@'localhost' identified by '?WHxx333Yo';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> grant all on wp_db.* to 'wp_user'@'localhost';
Query OK, 0 rows affected (0.001 sec)
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]> exit;
Bye
2. WordPress
2.1 Installing Required Libraries
# zypper -n install php-gd php-pdo php-mysql php-mbstring php-simplexml php-curl apache2-mod_php8
2.2 WordPress Download and Installation
# cd /srv/www/htdocs/[FQDN]
# wget http://wordpress.org/latest.tar.gz
# tar zxvf latest.tar.gz
2.3 Editing the configuration file
# cd wordpress/
# cp wp-config-sample.php wp-config.php
Setting database in wordpress config file
# vi wp-config.php
/** The name of the database for WordPress */
define( 'DB_NAME', 'wp_db' ); ←Database name
/** Database username */
define( 'DB_USER', 'wp_user' ); ←Username
/** Database password */
define( 'DB_PASSWORD', '?WHxx333Yo' ); ←Password
/** Database hostname */
Also, add the following line at the end. If you don't do this, you'll be prompted for FTP connection information when adding plugins.
define('FS_METHOD', 'direct');
Move the contents extracted under /srv/www/htdocs/[FQDN].
# cd /srv/www/htdocs/[FQDN]
# mv wordpress/* .
After confirming the files have been moved, delete the WordPress directory and the downloaded latest-.tar.gz file.
# rm -Rf wordpress
# rm -f latest.tar.gz
Set the owner of the WordPress directory to Apache.
If you don't do this, you'll get errors like "Unable to create directory" when installing plugins or performing similar actions.
# chown -R wwwrun:wwwrun /srv/www/htdocs/[FQDN]
# chmod 775 -R /srv/www/htdocs/[FQDN]
# systemctl restart apache2
2.4 Startup Verification
Connect to http://[server name]/wp-admin/install.php in your browser, enter the required information such as username and password, and begin the installation.
Typically, this will display the initial setup screen shown below, where you enter your "Username," "Password," etc., to access the WordPress admin dashboard.
Site Title: Any title
Username: Any username
Password: Any password
Your Email: Administrator's email address
Enter these details and click "Install WordPress."



The WordPress admin login screen will appear, prompting you to enter your "username or email address" and "password".


