On software, life and other matters

MySQL console beep … grrrrrrr

Posted: March 2nd, 2009 | Author: Greg Gigon | Filed under: development | Tags: , , | 6 Comments »

Sitting and doing some evening bed time development is usually not a stressful event. Listening to a calm music and than, in a middle of a chilled out thinking process, awesome, LOUD beep from a PC speaker announcing to my neighbours 10 floors up that I just made a typo when I tried to execute SQL query from mysql console. This awesome feature cased me a heart attack and Wife attack (I got a slap in a head for the attempt of waking my Daughter up).

After a 10 minute relaxation session I decided to put a ripped out speaker back to its original spot in the machine and google for a solution.

It looks like when you are starting the command line MySQL terminal there is a way of disabling the fantastic feature so happily put there by the awesome MySQL team. –b option does it.

C:\projects\>mysql –b –u root –p

Hope you will avoid the little BEEP sound that could wake up dead.

Cheers, Greg


6 Comments on “MySQL console beep … grrrrrrr”

  1. 1 Thomas said at 5:41 pm on March 2nd, 2009:

    there is as well a way that in device manager you can disable the speaker… it mean all bips are gone.. but at the same time that what you want anyway :)

  2. 2 Frank Carver said at 10:20 pm on March 2nd, 2009:

    I am continually amazed that any software these days uses the awful PC speaker. I routinely listen to my machine with headphones, so that there is no disturbance to others. Then it beeps! Aargh.

    If it helps, I summarised a few alternative methods of disabling the speaker on my blog last July: http://blog.punchbarrel.com/2008/07/07/disable-that-damn-pc-speaker-under-linux/

  3. 3 prakash said at 12:19 pm on April 22nd, 2009:

    it’s working fine , thanks a lot. i was looking for the solution from long time.

  4. 4 Luisg said at 2:35 pm on September 24th, 2009:

    Thanks for the tip, got me going on the right direction!

    You can also make the change in the client section of my.ini file. In Windows, it’s something like “\Program Files\MySQL\MySQL Server 5.0\my.ini”, I guess it should work in other platforms.

    Add no-beep=true to the [client] section to enjoy some well-deserved peace.

  5. 5 jcn50 said at 5:55 pm on November 13th, 2009:

    If your server beeps, it does mean that there is an error (usually a charset one!), so you’d better fix your scripts/apps, and not turn off the beep feature…
    A good script/app is when the MySQL server never beeps!

    Mine was beeping like hell, but it was because the default charset was badly set…..

  6. 6 rv said at 12:40 am on November 23rd, 2009:

    @Jcn50
    I sometimes use mysql command line to quickly manually type some command and see the results, in case of any typo it makes me annoyed, especially that I’m not MySQL master yet and sometimes have problems with syntax.

    @Greg, @luisg – thanks for sharing.


Leave a Reply

  • Comment spam protected by SpamBam