Cancel the warning when an error occurs when a command is entered in MySQL.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.