Error when opening Piwik

I haven’t signed into Piwik for a while but wanted to check something real quick. When signing in, I got the below error:

An exception has been thrown during the rendering of a template (“SQLSTATE[HY000]: General error: 1 Can’t create/write to file ‘/var/tmp/#sql_952_0.MAI’ (Errcode: 2)”) in “@CoreHome/getDefaultIndexView.twig” at line 7.

I checked the permissions of the /tmp folder and it was 777 and recursive… any ideas?

Nevermind… I went to one of my websites that I coded and got the same error… restarted my MySQL service and the issue was fixed…