I have a PHP project which is working with MariaDB/MySQL on a DirectAdmin machine.
It's a month that I receive this error while running a certain page in my application as below:
PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql...
When I restart the mysqld
service on the server, everything goes well! I am sure that there is not any issue on the disk space. This is the current server status:
[root@srv1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 880K 3.9G 1% /dev/shm
tmpfs 3.9G 390M 3.5G 10% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/vda1 42G 22G 18G 57% /
tmpfs 783M 0 783M 0% /run/user/0
What is your idea to solve this issue?