David Abuin Fontan
New Pleskian
Today when I upgraded to the latest version MariaDB server has stopped responding to requests to display the log've seen this error:
looking for google I have seen that this is a problem that must be 'open_files_limit' increase its value in systemd.
I doing the steps in the guide https://kb.plesk.com/en/128643 see that does not work for debian jessie
i check and:
Someone can give me a step by step guide
Thanks!
Code:
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.column_stats' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.event' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.func' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.help_category' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.help_keyword' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.help_relation' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.help_topic' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.index_stats' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.plugin' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.proc' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.table_stats' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.time_zone' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.time_zone_leap_second' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.time_zone_name' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.time_zone_transition' doesn't exist
Sep 18 01:02:47 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'mysql.time_zone_transition_type' doesn't exist
Sep 18 01:02:48 s-ares mysql[20549]: ERROR 1146 (42S02) at line 1: Table 'victoregs_EGSBD.lethe_campaign_groups' doesn't exist
Sep 18 01:02:50 s-ares mysqld: 160918 1:02:50 [ERROR] Error in accept: Too many open files
Sep 18 01:06:44 s-ares systemd[1]: Stopping LSB: Start and stop the mysql database server daemon...
Sep 18 01:07:06 s-ares mysqld: 160918 1:07:06 [ERROR] Error in accept: Too many open files
looking for google I have seen that this is a problem that must be 'open_files_limit' increase its value in systemd.
I doing the steps in the guide https://kb.plesk.com/en/128643 see that does not work for debian jessie
Code:
Create a new directory for MariaDB service changes:
# mkdir -p /etc/systemd/system/mariadb.service.d/
# touch /etc/systemd/system/mariadb.service.d/limits.conf
Configure systemd open files limit for MariaDB.
# cat /etc/systemd/system/mariadb.service.d/limits.conf
[Service]
LimitNOFILE=1024000
Restart MariaDB and daemon loader:
#systemctl daemon-reload
#systemctl restart mariadb <--- Not found (is /etc/init.d/mysql restart)
i check and:
Code:
root@s-ares:~# mysql -uadmin -p`cat /etc/psa/.psa.shadow` mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 7280
Server version: 10.0.27-MariaDB-0+deb8u1 (Debian)
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [mysql]> SHOW VARIABLES LIKE 'Open_files_limit';
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| open_files_limit | 1024 |
+------------------+-------+
1 row in set (0.00 sec)
Someone can give me a step by step guide
Thanks!