When you cancel an alarm when an error occurs when you enter a command in MySQL and connect to MySQL, you can add the-B parameter to cancel the alarm when an error occurs during SQL command execution, for example: www.2cto.com mysql-h127.0.0.1-uroot-proot-B. In this way, when an error occurs in the input command, you will no longer hear that ugly "comment. In addition, there are two BEEP methods for disabling MYSQL. 1. When using the MySQL Command terminal, if the entered SQL statement is incorrect, there will be beep. To disable this function, use mysql -- no-beep according to mysql -- help. Modify my. ini and add a line no-beep under [mysql] to restart MYSQL. Www.2cto.com method 2. right-click my computer-> hardware-> Device Manager-> View-> hide devices, find "Beep" in "plug-and-play drivers"-> double-click to open Beep properties-> driver-> stop where method 2 also closes all other hardware alarms, for example, when running Linux in a virtual machine.