Mariadb troubleshoot
This warning usually indicates a permission issue or a disk space problem when a service (like MySQL or MariaDB) tries to create a temporary test file. Here’s how you can troubleshoot:
1. Check Disk Space
Run:
df -h
If the disk is full, free up space.
2. Verify Directory Permissions
Check the ownership and permissions of the directory where the test file is being created:
ls -ld /var/lib/mysql
If needed, reset ownership:
sudo chown -R mysql:mysql /var/lib/mysql
3. Check SELinux or AppArmor
If SELinux is enabled, try:
sudo setenforce 0
For AppArmor (Ubuntu), disable MySQL restrictions:
sudo aa-disable /usr/sbin/mysqld
4. Restart the Service
sudo systemctl restart mysql
or
sudo systemctl restart mariadb
For more details, check out this discussion or this troubleshooting guide. Let me know if you need further assistance! 🚀