Is this for a MySQLi connection? I'd probably need to screen share to fully debug, but it shouldn't be using mysql_(p)connect for a MySQLi connection. My assumption would be that you have php 7 and don't have the mySQL component anymore, which explains the error, but it shouldn't happen for mySQLi.