• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved SQL Service kinda broken after Update

Gothsome

New Pleskian
Hello!

I have Plesk Obsidian 18041 and VPS Ubuntu 18.04 LTS 64bit.

I sadly updated the MariaDB to 10.6.7 because my Nexcloud installation "demanded" it and now the Service cant start like usual.

The Message is:
Do you already have another server running on port: 3306 ?

If i enter things like netstat -a -n -o | find "3306" theres nothing using the port.

Im quite clueless and hope for a goot hint.


Thank you!
 
I used ps aux:
It doesnt seem to be something related to MariaDB


Code:
root@h2922461:~# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.5  0.1 225108  8504 ?        Ss   Feb16   4:13 init -z
root         2  0.0  0.0      0     0 ?        S    Feb16   0:00 [kthreadd/292246]
root         3  0.0  0.0      0     0 ?        S    Feb16   0:02 [khelper]
root        79  0.2  4.5 579240 385468 ?       Ds   Feb16   2:09 /lib/systemd/systemd-journald
root       144  0.0  0.0  42104  3540 ?        Ss   Feb16   0:00 /lib/systemd/systemd-udevd
systemd+   156  0.0  0.0  71720  5016 ?        Ss   Feb16   0:00 /lib/systemd/systemd-networkd
root       164  0.0  0.0  62004  5368 ?        Ss   Feb16   0:13 /lib/systemd/systemd-logind
plesk-s+   165  0.0  0.0 1083012 5412 ?        Ssl  Feb16   0:00 /usr/local/psa/admin/plib/modules/ssh-terminal/libexec/plesk-ssh-terminal --listen /run/plesk-ssh-terminal/backend.sock --connect-to *:22
message+   168  0.0  0.0  47628  4108 ?        Ss   Feb16   0:48 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
root       188  0.0  0.6 3347940 51396 ?       Ssl  Feb16   0:03 /usr/lib/erlang/lib/kolab_guam-0.9.9/bin/guam -Bd -- -root /usr/lib/erlang/lib/kolab_guam-0.9.9 -progname usr/lib/erlang/lib/kolab_guam-0.9.9/bin/guam -- -home /opt/kolab_g
syslog     189  0.0  0.0 189024  4808 ?        Ssl  Feb16   0:27 /usr/sbin/rsyslogd -n
psaadm     194  0.2  0.1 1685984 14588 ?       Ssl  Feb16   2:25 /usr/lib/plesk-task-manager --config /opt/psa/admin/conf/task-manager.yml --data /var/lib/plesk/task-manager
root       197  0.0  0.0  30380  3168 ?        Ss   Feb16   0:00 /usr/sbin/cron -f
root       329  0.0  0.3 508144 31624 ?        Ss   Feb16   0:02 php-fpm: master process (/opt/plesk/php/8.0/etc/php-fpm.conf)
postfix    335  0.0  0.0 472956  7844 ?        Ssl  Feb16   0:07 /usr/lib/plesk-9.0/psa-pc-remote -p inet:[email protected] -t 7210   -P /run/psa-pc-remote.pid -u postfix -g popuser -n
root       338  0.0  0.5 610916 49132 ?        Ss   Feb16   0:02 php-fpm: master process (/opt/plesk/php/7.3/etc/php-fpm.conf)
root       350  0.0  0.0  35524  4016 ?        Ss   Feb16   0:00 /usr/sbin/dovecot -F
root       353  0.0  0.5 1646608 42856 ?       Ssl  Feb16   0:10 /usr/bin/containerd
root       354  0.0  0.0  13016  1900 ?        Ss+  Feb16   0:00 /sbin/agetty -o -p -- \u --noclear tty2 linux
root       356  0.0  0.0  15016  2404 ?        Ss+  Feb16   0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud console 115200,38400,9600 linux
root       360  0.0  0.0  72296  6088 ?        Ss   Feb16   0:01 /usr/sbin/sshd -D
root       487  0.0  0.0  24184  2552 ?        Ss   Feb16   0:00 /usr/sbin/xinetd -pidfile /run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
dovecot    494  0.0  0.0  10336  1148 ?        S    Feb16   0:00 dovecot/anvil
root       495  0.0  0.0  10592  3000 ?        S    Feb16   0:00 dovecot/log
root       496  0.0  0.0  30964  5628 ?        S    Feb16   0:00 dovecot/config
root       507  0.0  0.0  42752  1768 ?        Ss   Feb16   0:00 sw-cp-server: master process /usr/sbin/sw-cp-serverd -c /etc/sw-cp-server/config
sw-cp-s+   508  0.0  0.0  43624  7932 ?        S    Feb16   0:00 sw-cp-server: worker process
root       564  0.0  0.1 111832 10176 ?        Ss   Feb16   0:01 /usr/sbin/apache2 -k start
www-data   565  0.0  0.0 111060  5032 ?        S    Feb16   0:00 /usr/sbin/apache2 -k start
www-data   568  0.0  0.1 2039924 10872 ?       Sl   Feb16   0:00 /usr/sbin/apache2 -k start
www-data   572  0.0  0.1 2040144 10780 ?       Sl   Feb16   0:00 /usr/sbin/apache2 -k start
root       637  0.0  0.0 100980  2576 ?        Ss   Feb16   0:00 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 2
root       639  0.0  0.0 100980   804 ?        S    Feb16   0:00 /usr/sbin/saslauthd -a pam -c -m /var/run/saslauthd -n 2
root       672  0.0  0.0  26852   204 ?        S    Feb16   0:00 /usr/lib/erlang/erts-9.2/bin/epmd -daemon
root       687  0.0  0.0   4516   752 ?        Ss   Feb16   0:00 erl_child_setup 1048576
root       803  0.0  0.8 1641692 74584 ?       Ssl  Feb16   0:10 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
root       868  0.0  0.0  65440  3260 ?        Ss   Feb16   0:07 /usr/lib/postfix/sbin/master -w
postfix   1384  0.0  0.0  81184  6200 ?        S    Feb16   0:04 qmgr -l -t fifo -u
postfix   1387  0.0  0.0  94208  8188 ?        S    Feb16   0:07 plesk_saslauthd -l -t unix -u -c status=5 listen=6 dbpath=/plesk/passwd.db
postfix   1439  0.0  0.0  81048  5972 ?        S    Feb16   0:02 anvil -l -t unix -u -c
postfix   1442  0.0  0.0  81080  7708 ?        S    Feb16   0:00 tlsmgr -l -t unix -u -c
dovecot   5616  0.0  0.0  14188  3140 ?        S    Feb16   0:00 dovecot/stats
root      7396  0.0  0.4 441380 38028 ?        Ss   07:30   0:00 sw-engine-fpm: master process (/etc/sw-engine/sw-engine-fpm.conf)
root      9644  0.0  0.0   8260  1268 ?        Ss   Feb16   0:00 inet_gethost 4
root      9645  0.0  0.0   8260   100 ?        S    Feb16   0:00 inet_gethost 4
postfix  14794  0.0  0.0  81044  6192 ?        S    10:18   0:00 pickup -l -t fifo -u -c
postfix  15621  0.0  0.1 112756 11608 ?        S    10:20   0:00 smtpd -n smtp -t inet -u -c -o stress= -s 2
postfix  15768  0.0  0.1 112756 11360 ?        S    10:20   0:00 smtpd -n smtp -t inet -u -c -o stress= -s 2
postfix  15769  0.0  0.1 112756 11380 ?        S    10:20   0:00 smtpd -n smtp -t inet -u -c -o stress= -s 2
postfix  17736  0.0  0.0  80908  6160 ?        S    10:25   0:00 spawn -n 127.0.0.1:12346 -t inet user=popuser popuser argv=/usr/lib/plesk-9.0/postfix-srs
popuser  17737  0.0  0.0  28000  2808 ?        Ss   10:25   0:00 /usr/lib/plesk-9.0/postfix-srs
root     18599  0.0  0.1 121468  8892 ?        Ss   07:54   0:00 sshd: root@pts/0
root     18753  0.0  0.0  21720  5140 pts/0    Ss   07:54   0:00 -bash
postfix  20548  0.0  0.1 112756 11320 ?        S    10:32   0:00 smtpd -n smtp -t inet -u -c -o stress= -s 2
postfix  21090  0.0  0.1 112756 11448 ?        S    10:33   0:00 smtpd -n smtp -t inet -u -c -o stress= -s 2
root     24549  0.0  0.0  36504  3448 pts/0    R+   10:42   0:00 ps aux
verena-+ 30877  0.0  0.2 508192 23744 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30878  0.0  0.2 508192 24060 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30879  0.0  0.2 508192 24056 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30880  0.0  0.2 508192 24068 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30881  0.0  0.2 508192 24148 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30882  0.0  0.2 508192 24276 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30883  0.0  0.2 508192 24276 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30884  0.0  0.2 508192 24220 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30885  0.0  0.2 508192 24160 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30886  0.0  0.2 508192 24216 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30887  0.0  0.2 508192 24220 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30888  0.0  0.2 508192 24308 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30889  0.0  0.2 508192 24248 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30890  0.0  0.2 508192 22604 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30891  0.0  0.2 508352 23652 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30892  0.0  0.2 508352 23224 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30893  0.0  0.2 508352 23224 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30894  0.0  0.2 508192 22604 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30895  0.0  0.2 508192 22604 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30896  0.0  0.2 508192 22920 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30897  0.0  0.2 508192 23300 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
verena-+ 30898  0.0  0.2 508192 23308 ?        S    03:56   0:00 php-fpm: pool wolke.matthiasduerre.de
 
Please check /var/log/messages for detailed messages from the MariaDB startup phase. Normally they should be seen by
# grep mariadb /var/log/messages
There you should see the exact reason why it won't start.
 
Thank you!

It says with grep mariadb /var/log/messages that the file or path not found.

I get Something when i use systemctl status mariadb.service

Code:
root@h2922461:~# systemctl status mariadb.service
● mariadb.service - MariaDB 10.6.7 database server
   Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/mariadb.service.d
           └─migrated-from-my.cnf-settings.conf
   Active: failed (Result: exit-code) since Thu 2022-02-17 11:00:37 CET; 826ms ago
     Docs: man:mariadbd(8)
           https://mariadb.com/kb/en/library/systemd/
  Process: 32381 ExecStart=/usr/sbin/mariadbd $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=1/FAILURE)
  Process: 32348 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ]   && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status
  Process: 32345 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 32343 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
 Main PID: 32381 (code=exited, status=1/FAILURE)
   Status: "MariaDB server is down"

Feb 17 11:00:37 h2922461.stratoserver.net mariadbd[32381]: 2022-02-17 11:00:37 0 [Note] InnoDB: Buffer pool(s) load completed at 220217 11:00:37
Feb 17 11:00:37 h2922461.stratoserver.net mariadbd[32381]: 2022-02-17 11:00:37 0 [Note] Plugin 'FEEDBACK' is disabled.
Feb 17 11:00:37 h2922461.stratoserver.net mariadbd[32381]: 2022-02-17 11:00:37 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
Feb 17 11:00:37 h2922461.stratoserver.net mariadbd[32381]: 2022-02-17 11:00:37 0 [Note] Server socket created on IP: '127.0.0.1'.
Feb 17 11:00:37 h2922461.stratoserver.net mariadbd[32381]: 2022-02-17 11:00:37 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 22: Invalid argument
Feb 17 11:00:37 h2922461.stratoserver.net mariadbd[32381]: 2022-02-17 11:00:37 0 [ERROR] Do you already have another server running on port: 3306 ?
Feb 17 11:00:37 h2922461.stratoserver.net mariadbd[32381]: 2022-02-17 11:00:37 0 [ERROR] Aborting
Feb 17 11:00:37 h2922461.stratoserver.net systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
Feb 17 11:00:37 h2922461.stratoserver.net systemd[1]: mariadb.service: Failed with result 'exit-code'.
Feb 17 11:00:37 h2922461.stratoserver.net systemd[1]: Failed to start MariaDB 10.6.7 database server.

And with journalctl -xe:

Code:
root@h2922461:~# journalctl -xe
Feb 17 11:01:42 h2922461.stratoserver.net plesk_saslauthd[1387]: failed mail authentication attempt for user '[email protected]' (password len=4)
Feb 17 11:01:42 h2922461.stratoserver.net postfix/smtpd[21090]: warning: unknown[212.70.149.89]: SASL LOGIN authentication failed: authentication failure
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] /usr/sbin/mariadbd (server 10.6.7-MariaDB-1:10.6.7+maria~bionic) starting as process 413 ...
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] InnoDB: Number of pools: 1
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] InnoDB: Using Linux native AIO
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] InnoDB: Completed initialization of buffer pool
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] InnoDB: 128 rollback segments are active.
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] InnoDB: Creating shared tablespace for temporary tables
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
Feb 17 11:01:43 h2922461.stratoserver.net postfix/smtpd[27600]: connect from unknown[5.34.207.69]
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] InnoDB: 10.6.7 started; log sequence number 4362878073; transaction id 21785186
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] Plugin 'FEEDBACK' is disabled.
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] InnoDB: Buffer pool(s) load completed at 220217 11:01:43
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [Note] Server socket created on IP: '127.0.0.1'.
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 22: Invalid argument
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [ERROR] Do you already have another server running on port: 3306 ?
Feb 17 11:01:43 h2922461.stratoserver.net mariadbd[413]: 2022-02-17 11:01:43 0 [ERROR] Aborting
Feb 17 11:01:44 h2922461.stratoserver.net postfix/smtpd[28764]: connect from unknown[212.70.149.57]
Feb 17 11:01:44 h2922461.stratoserver.net systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
Feb 17 11:01:44 h2922461.stratoserver.net systemd[1]: mariadb.service: Failed with result 'exit-code'.
Feb 17 11:01:44 h2922461.stratoserver.net systemd[1]: Failed to start MariaDB 10.6.7 database server.
-- Subject: Unit mariadb.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit mariadb.service has failed.
--
-- The result is RESULT.
Feb 17 11:01:44 h2922461.stratoserver.net systemd[1]: Started Plesk Web Socket Service.
-- Subject: Unit plesk-web-socket.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit plesk-web-socket.service has finished starting up.
--
-- The start-up result is RESULT.
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]: [2022-02-17 11:01:44.532] 421:620e1d0881ac0 ERR [panel] DB query failed: SQLSTATE[HY000] [2002] No such file or directory:
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]: 0: /opt/psa/admin/plib/Db/Adapter/Pdo/Mysql.php:79
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]:         Db_Adapter_Pdo_Mysql->query(string 'SET sql_mode = ''')
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]: 1: /opt/psa/admin/plib/CommonPanel/Application/Abstract.php:103
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]:         CommonPanel_Application_Abstract::initDbAdapter()
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]: 2: /opt/psa/admin/plib/Session/Helper.php:176
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]:         Plesk\Session\Helper::initStorage()
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]: 3: /opt/psa/admin/plib/CommonPanel/Application/Abstract.php:52
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]:         CommonPanel_Application_Abstract->run()
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]: 4: /opt/psa/admin/plib/CommonPanel/Application/Abstract.php:34
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]:         CommonPanel_Application_Abstract::init()
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]: 5: /opt/psa/admin/plib/pm/Bootstrap.php:16
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]:         pm_Bootstrap::init()
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]: 6: /opt/psa/admin/plib/sdk.php:11
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]:         require_once(string '/opt/psa/admin/plib/sdk.php')
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]: 7: /opt/psa/admin/plib/WebSocket/bin/ws-server.php:3
Feb 17 11:01:44 h2922461.stratoserver.net sw-engine-pleskrun[421]: ERROR: Plesk\Exception\Database: DB query failed: SQLSTATE[HY000] [2002] No such file or directory (Mysql.php:79)
Feb 17 11:01:44 h2922461.stratoserver.net systemd[1]: plesk-web-socket.service: Main process exited, code=exited, status=1/FAILURE
Feb 17 11:01:44 h2922461.stratoserver.net systemd[1]: plesk-web-socket.service: Failed with result 'exit-code'.
Feb 17 11:01:44 h2922461.stratoserver.net postfix/smtpd[21090]: disconnect from unknown[212.70.149.89] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
lines 1444-1505/1505 (END)

I hope this is waht you are looking for.

My problem is, when i look any process using this port tere is nothing - and i rebooted the whole device multible times.

Thank you!!
 
Well, then it is /var/log/syslog on your system. But anyway, the information given ought to be enough.

In the mysql configuration file: what is the bind-address configuration entry saying?

Examples:
Code:
[mysqld]
bind-address = ::
if you want to enable access for all IP addresses.

Code:
[mysqld]
bind-address = 127.0.0.1
if you want to limit access to localhost only and you are using IPv4.

etc.

On Debian and Ubuntu the mysql configuration could be in /etc/mysql/mysql.conf.d/mysqld.cnf, on RHEL or CentOS it could be in /etc/my.cnf.
 
And in /var/log/syslog:

Code:
Feb 17 03:56:09 h2922461 systemd[1]: Starting MariaDB 10.6.7 database server...
Feb 17 03:56:09 h2922461 mariadbd[30957]: 2022-02-17  3:56:09 0 [Note] /usr/sbin/mariadbd (server 10.6.7-MariaDB-1:10.6.7+maria~bionic) starting as process 30957 ...
Feb 17 03:56:09 h2922461 mariadbd[30957]: 2022-02-17  3:56:09 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
Feb 17 03:56:09 h2922461 mariadbd[30957]: 2022-02-17  3:56:09 0 [Note] InnoDB: Number of pools: 1
Feb 17 03:56:09 h2922461 mariadbd[30957]: 2022-02-17  3:56:09 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
Feb 17 03:56:09 h2922461 mariadbd[30957]: 2022-02-17  3:56:09 0 [Note] InnoDB: Using Linux native AIO
Feb 17 03:56:09 h2922461 mariadbd[30957]: 2022-02-17  3:56:09 0 [Note] InnoDB: Initializing buffer pool, total size = 134217728, chunk size = 134217728
Feb 17 03:56:09 h2922461 mariadbd[30957]: 2022-02-17  3:56:09 0 [Note] InnoDB: Completed initialization of buffer pool
Feb 17 03:56:10 h2922461 mariadbd[30957]: 2022-02-17  3:56:10 0 [Note] InnoDB: 128 rollback segments are active.
Feb 17 03:56:10 h2922461 mariadbd[30957]: 2022-02-17  3:56:10 0 [Note] InnoDB: Creating shared tablespace for temporary tables
Feb 17 03:56:10 h2922461 mariadbd[30957]: 2022-02-17  3:56:10 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
Feb 17 03:56:10 h2922461 mariadbd[30957]: 2022-02-17  3:56:10 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
Feb 17 03:56:10 h2922461 mariadbd[30957]: 2022-02-17  3:56:10 0 [Note] InnoDB: 10.6.7 started; log sequence number 4362829741; transaction id 21785186
Feb 17 03:56:10 h2922461 mariadbd[30957]: 2022-02-17  3:56:10 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
Feb 17 03:56:10 h2922461 mariadbd[30957]: 2022-02-17  3:56:10 0 [Note] Plugin 'FEEDBACK' is disabled.
Feb 17 03:56:10 h2922461 mariadbd[30957]: 2022-02-17  3:56:10 0 [Note] InnoDB: Buffer pool(s) load completed at 220217  3:56:10
Feb 17 03:56:10 h2922461 mariadbd[30957]: 2022-02-17  3:56:10 0 [Warning] You need to use --log-bin to make --expire-logs-days or --binlog-expire-logs-seconds work.
Feb 17 03:56:10 h2922461 mariadbd[30957]: 2022-02-17  3:56:10 0 [Note] Server socket created on IP: '127.0.0.1'.
Feb 17 03:56:10 h2922461 mariadbd[30957]: 2022-02-17  3:56:10 0 [ERROR] Can't start server: Bind on TCP/IP port. Got error: 22: Invalid argument
Feb 17 03:56:10 h2922461 mariadbd[30957]: 2022-02-17  3:56:10 0 [ERROR] Do you already have another server running on port: 3306 ?
Feb 17 03:56:10 h2922461 mariadbd[30957]: 2022-02-17  3:56:10 0 [ERROR] Aborting
 
I have in /etc/mysql/my.cnf

Code:
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mariadb.conf.d/
[mysqld]
bind-address = ::ffff:127.0.0.1
local-infile=0
 
Back
Top