Tried including "port = 3307" in each section (separate times) [server],[mysqld],[embedded],[mariadb],[mariadb-5.5]
# systemctl restart mariadb
# systemctl status mariadb.service
● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2017-03-31 12:31:38 CEST; 1min 14s ago
Process: 11916 ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=1/FAILURE)
Process: 11915 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
Process: 11887 ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Main PID: 11915 (code=exited, status=0/SUCCESS)
Mar 31 12:31:35 domain.com systemd[1]: Starting MariaDB database server...
Mar 31 12:31:35 domain.com mysqld_safe[11915]: 170331 12:31:35 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Mar 31 12:31:35 domain.com mysqld_safe[11915]: 170331 12:31:35 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Mar 31 12:31:38 domain.com mysqld_safe[11915]: 170331 12:31:38 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
Mar 31 12:31:38 domain.com systemd[1]: mariadb.service: control process exited, code=exited status=1
Mar 31 12:31:38 domain.com systemd[1]: Failed to start MariaDB database server.
Mar 31 12:31:38 domain.com systemd[1]: Unit mariadb.service entered failed state.
Mar 31 12:31:38 domain.com systemd[1]: mariadb.service failed.
# journalctl -xe
--
-- Unit mariadb.service has failed.
--
-- The result is failed.
Mar 31 12:30:14 domain.com systemd[1]: Unit mariadb.service entered failed state.
Mar 31 12:30:14 domain.com systemd[1]: mariadb.service failed.
Mar 31 12:30:42 domain.com systemd[1]: Starting MariaDB database server...
-- Subject: Unit mariadb.service has begun start-up
-- Defined-By: systemd
--
-- Unit mariadb.service has begun starting up.
Mar 31 12:30:43 domain.com mysqld_safe[11371]: 170331 12:30:43 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Mar 31 12:30:43 domain.com mysqld_safe[11371]: 170331 12:30:43 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Mar 31 12:30:45 domain.com mysqld_safe[11371]: 170331 12:30:45 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
Mar 31 12:30:45 domain.com systemd[1]: mariadb.service: control process exited, code=exited status=1
Mar 31 12:30:45 domain.com systemd[1]: Failed to start MariaDB database server.
-- Subject: Unit mariadb.service has failed
-- Defined-By: systemd
--
-- Unit mariadb.service has failed.
--
-- The result is failed.
Mar 31 12:30:45 domain.com systemd[1]: Unit mariadb.service entered failed state.
Mar 31 12:30:45 domain.com systemd[1]: mariadb.service failed.
Mar 31 12:31:05 domain.com systemd[1]: Starting MariaDB database server...
-- Subject: Unit mariadb.service has begun start-up
-- Defined-By: systemd
--
-- Unit mariadb.service has begun starting up.
Mar 31 12:31:05 domain.com mysqld_safe[11642]: 170331 12:31:05 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Mar 31 12:31:05 domain.com mysqld_safe[11642]: 170331 12:31:05 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Mar 31 12:31:07 domain.com mysqld_safe[11642]: 170331 12:31:07 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
Mar 31 12:31:08 domain.com systemd[1]: mariadb.service: control process exited, code=exited status=1
Mar 31 12:31:08 domain.com systemd[1]: Failed to start MariaDB database server.
-- Subject: Unit mariadb.service has failed
-- Defined-By: systemd
--
-- Unit mariadb.service has failed.
--
-- The result is failed.
Mar 31 12:31:08 domain.com systemd[1]: Unit mariadb.service entered failed state.
Mar 31 12:31:08 domain.com systemd[1]: mariadb.service failed.
Mar 31 12:31:35 domain.com systemd[1]: Starting MariaDB database server...
-- Subject: Unit mariadb.service has begun start-up
-- Defined-By: systemd
--
-- Unit mariadb.service has begun starting up.
Mar 31 12:31:35 domain.com mysqld_safe[11915]: 170331 12:31:35 mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Mar 31 12:31:35 domain.com mysqld_safe[11915]: 170331 12:31:35 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Mar 31 12:31:38 domain.com mysqld_safe[11915]: 170331 12:31:38 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
Mar 31 12:31:38 domain.com systemd[1]: mariadb.service: control process exited, code=exited status=1
Mar 31 12:31:38 domain.com systemd[1]: Failed to start MariaDB database server.
-- Subject: Unit mariadb.service has failed
-- Defined-By: systemd
--
-- Unit mariadb.service has failed.
--
-- The result is failed.
# cat /var/log/mariadb/mariadb.log
170331 12:20:12 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
170331 12:27:11 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
170331 12:27:11 [Note] /usr/libexec/mysqld (mysqld 5.5.52-MariaDB) starting as process 11010 ...
170331 12:27:11 InnoDB: The InnoDB memory heap is disabled
170331 12:27:11 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170331 12:27:11 InnoDB: Compressed tables use zlib 1.2.7
170331 12:27:11 InnoDB: Using Linux native AIO
170331 12:27:11 InnoDB: Initializing buffer pool, size = 128.0M
170331 12:27:11 InnoDB: Completed initialization of buffer pool
170331 12:27:11 InnoDB: highest supported file format is Barracuda.
170331 12:27:11 InnoDB: Waiting for the background threads to start
170331 12:27:12 Percona XtraDB (
Experts in Database Performance Management) 5.5.49-MariaDB-38.0 started; log sequence number 14283283
170331 12:27:12 [Note] Plugin 'FEEDBACK' is disabled.
170331 12:27:12 [Note] Server socket created on IP: '::'.
170331 12:27:12 [Note] Event Scheduler: Loaded 0 events
170331 12:27:12 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.52-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 3306 MariaDB Server
170331 12:30:10 [Note] /usr/libexec/mysqld: Normal shutdown
170331 12:31:06 InnoDB: Starting shutdown...
170331 12:31:07 InnoDB: Shutdown completed; log sequence number 14283293
170331 12:31:07 [Note] /usr/libexec/mysqld: Shutdown complete
170331 12:31:07 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
170331 12:31:35 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
170331 12:31:35 [Note] /usr/libexec/mysqld (mysqld 5.5.52-MariaDB) starting as process 12112 ...
170331 12:31:36 InnoDB: The InnoDB memory heap is disabled
170331 12:31:36 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170331 12:31:36 InnoDB: Compressed tables use zlib 1.2.7
170331 12:31:36 InnoDB: Using Linux native AIO
170331 12:31:36 InnoDB: Initializing buffer pool, size = 128.0M
170331 12:31:36 InnoDB: Completed initialization of buffer pool
170331 12:31:36 InnoDB: highest supported file format is Barracuda.
170331 12:31:36 InnoDB: Waiting for the background threads to start
170331 12:31:37 Percona XtraDB (
Experts in Database Performance Management) 5.5.49-MariaDB-38.0 started; log sequence number 14283293
170331 12:31:37 [Note] Plugin 'FEEDBACK' is disabled.
170331 12:31:37 [Note] Server socket created on IP: '::'.
170331 12:31:37 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 13: Permission denied
170331 12:31:37 [ERROR] Do you already have another mysqld server running on port: 3307 ?
170331 12:31:37 [ERROR] Aborting
170331 12:31:37 InnoDB: Starting shutdown...
170331 12:31:37 InnoDB: Shutdown completed; log sequence number 14283293
170331 12:31:37 [Note] /usr/libexec/mysqld: Shutdown complete
170331 12:31:38 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended