Sometimes, the sessions I initiate with mariadb -h local
freeze.
Here's my latest example:
MariaDB [(none)]> SELECT u
I'm certain that I did not hit any extra keys.
Then I did connect once more and could enter my query:
MariaDB [(none)]> SELECT user, host FROM mysql.user;
+-------------------+-----------+
| User | Host |
+-------------------+-----------+
| mariadb.sys | localhost |
| mysql | localhost |
| root | localhost |
| user_of_mediawiki | localhost |
+-------------------+-----------+
4 rows in set (0.001 sec)
MariaDB [(none)]>
I did notice the status of session 35
:
MariaDB [(none)]> show processlist;
+----+------+-----------+------+---------+------+----------+------------------+----------+
| Id | User | Host | db | Command | Time | State | Info | Progress |
+----+------+-----------+------+---------+------+----------+------------------+----------+
| 35 | root | localhost | NULL | Sleep | 388 | | NULL | 0.000 |
| 37 | root | localhost | NULL | Query | 0 | starting | show processlist | 0.000 |
+----+------+-----------+------+---------+------+----------+------------------+----------+
2 rows in set (0.000 sec)
MariaDB [(none)]>
After I have terminated the working session:
root@# /var/www# ss -p | grep mariadb
u_str ESTAB 0 0 /run/mysqld/mysqld.sock 42965 * 43515 users:(("mariadbd",pid=711,fd=99))
u_str ESTAB 0 0 * 43515 * 42965 users:(("mariadb",pid=16694,fd=3))
u_str ESTAB 0 0 * 17863 * 17864 users:(("mariadbd",pid=711,fd=2),("mariadbd",pid=711,fd=1))
root#
I have not toggled the terminal to read-only mode.