Answer:
When using the MySQL command terminal, if you enter the wrong SQL, there will be a beep sound. To turn off this feature, use mysql --no-beep according to mysql --help.
Modify my.ini
and add a line ofno-beep
under [mysql]
and finally restart the MySQL database.