Solve the tty (pty) issue in MySQL.