Error trying to recreate a database - Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I’ve been getting this error ever since updating to Lightning, anyone find a fix?

edit: for anyone getting here via google etc, more current updates here: Unable to access database