I'm sure as a system administrator on any flavour of UNIX you
appreciate the power of the few magic characters, such as
#!/bin/sh, found at the first line of many scripts,
commonly called a shebang. They allow you to treat a script almost
as a binary executable. To run it, you just type its name at the
prompt and don't have to worry if it's written in Perl, Bash,
awk, Python or anything else. Just for your MySQL scripts you
still type the verbose mysql < your_script.sql
all the time, don't you?
I found this to become especially annoying (yes, programmers and administrators are lazy folks) now that every MySQL release gives me more and more powerful features: Where I before had to write a script in another language anyway, now I often find that MySQL allows me to do everything in plain SQL, even some complex data extraction tasks (using …
[Read more]