[root@centos7 ~]#ss -ntulp
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
tcp LISTEN 0128 *:22 *:* users:(("sshd",pid=1369,fd=3))
tcp LISTEN 0100127.0.0.1:25 *:* users:(("master",pid=2270,fd=13))
tcp LISTEN 080 :::3306 :::* users:(("mysqld",pid=1667,fd=19))[root@centos7 ~]#mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 10.2.31-MariaDB MariaDB Server
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)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema || mysql || performance_schema ||test|
+--------------------+
4 rows inset(0.00 sec)
[ERROR] Can't start server : Bind on unix socket: Permission denied
[ERROR] Do you already have another mysqld server running on socket:
[ERROR] /usr/local/mysql/mysql.sock ?
Aborting
[ERROR] Can't start server : Bind on unix socket: Permission denied
[ERROR] Do you already have another mysqld server running on socket: /usr/local/mysql/mysql.sock ?
[ERROR] Aborting
mysqld_safe mysqld from pid file /usr/local/mysql/mysql.pid ended