SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction The SQL being executed was: UPDATE tbl_point SET location = POINTFROMTEXT(CONCAT('POINT(55.683452 37.526923)'))
Для выяснения причины ошибки, необходимо запустить SHOW ENGINE INNODB STATUS;
SQLSTATE[HY000] [2002] No such file or directory
Ошибка появляется при неверном указании сокета для драйвера PDO pdo_mysql.default_socket
Got error 28 from storage engine
Checking for corrupt, not cleanly closed and upgrade needing tables
Can't read dir of '.' (Errcode: 24 "Too many open files")
Превышение одновременно открытых дескрипторов
# cat /etc/security/limits.conf | grep -vP '^#'
cat /etc/mysql/my.cnf|grep open_files_limit
lsof -u mysql | wc -l
# mysql -se "show variables like 'open_files_limit'" -uroot -p Variable_name Value open_files_limit 1024
mysql hard nofile 102400 mysql soft nofile 102400
$ ulimit -n 102400
$ ulimit -a
[mysqld] open_files_limit = 8192
или
echo 'mysql - nofile 8192' > /etc/security/limits.d/mysql.conf
# service mysql restart
Если после перезапуска mysql не применил новые ограничения, значит PAM это запретил. Тогда добавляем разрешение в PAM.
grep -r limits /etc/pam.*
$ echo 'session required pam_limits.so' >> /etc/pam.d/common-session
$ echo 'session required pam_limits.so' >> /etc/pam.d/common-session-noninteractive
echo " [Service] LimitNOFILE=infinity LimitMEMLOCK=infinity" > /etc/systemd/system/mysqld.service
systemctl reload mariadb.service