Added permissions to mysql.cpp