出于某种原因,当我启动 mariadb(版本 10.0.14)时,我无法让 HandlerSocket 开始监听。我正在使用 Cent OS 6.5。
my.cnf 具有以下设置:
handlersocket_port = 9998
handlersocket_port_wr = 9999
handlersocket_address = 127.0.0.1
从 mariaDb 提示符调用“SHOW GLOBAL VARIABLES LIKE 'handlersocket%'”显示:
+-------------------------------+-----------+
| Variable_name | Value |
+-------------------------------+-----------+
| handlersocket_accept_balance | 0 |
| handlersocket_address | 127.0.0.1 |
| handlersocket_backlog | 32768 |
| handlersocket_epoll | 1 |
| handlersocket_plain_secret | |
| handlersocket_plain_secret_wr | |
| handlersocket_port | 9998 |
| handlersocket_port_wr | 9999 |
| handlersocket_rcvbuf | 0 |
| handlersocket_readsize | 0 |
| handlersocket_sndbuf | 0 |
| handlersocket_threads | 16 |
| handlersocket_threads_wr | 1 |
| handlersocket_timeout | 300 |
| handlersocket_verbose | 10 |
| handlersocket_wrlock_timeout | 12 |
+-------------------------------+-----------+
我可以成功启动 mariadb,但是当我检查哪些端口正在主动监听时,9998 和 9999 都没有出现。我检查了 mysqld.log 文件,但似乎没有发生错误。