Feeds

Examples of good practice, or not...

Buyer beware?

  • alert
  • submit to reddit

Boost IT visibility and business value

It's always an issue, when publishing tutorials, as to how much care you take about "good practice" peripheral to the main tutorial subject. What's appropriate when knocking up a quick demo to illustrate the capabilities of a new technology isn't appropriate when the new technology might end up in a business production environment - but you do need to concentrate on the main subject.

David Harper has highlighted this issue (and he might put it a bit more strongly than that) in an email; but the AJAX tutorial he's commenting on is just that, not a MySQL tutorial.

Nevertheless, his comment is well worth reading, I think:

I read part 1 of your AJAX tutorial with interest, and I'm looking forward to part 2, but as a MySQL database administrator, I winced when I saw your instructions on how to add a new user.

You should *never* insert records directly into the mysql.user table. In any case, the grant statement in your article achieves the same result as the "INSERT INTO user" statement immediately above it, and you don't need to follow a grant statement with "FLUSH PRIVILEGES".

Also, you should never routinely give users the grant privilege, since this is a gaping security hole, especially in a web application. In most situations, only the MySQL root user needs to have grant privileges.

Best regards, David Harper

Even so, although we do try hard to get things right, we also try to keep our articles reasonably short, so readers have time to read them. Which means that we can't always cover everything in detail.

I do rather hope that our professional readership isn't relying entirely on Register Developer for its professional "good practice". But, surely, professionals will already be working within a quality Development Process, supported by proper training courses?

I'll get me coat...

The essential guide to IT transformation

More from The Register

next story
Munich considers dumping Linux for ... GULP ... Windows!
Give a penguinista a hug, the Outlook's not good for open source's poster child
The Return of BSOD: Does ANYONE trust Microsoft patches?
Sysadmins, you're either fighting fires or seen as incompetents now
Intel's Raspberry Pi rival Galileo can now run Windows
Behold the Internet of Things. Wintel Things
Microsoft cries UNINSTALL in the wake of Blue Screens of Death™
Cache crash causes contained choloric calamity
Eat up Martha! Microsoft slings handwriting recog into OneNote on Android
Freehand input on non-Windows kit for the first time
Time to move away from Windows 7 ... whoa, whoa, who said anything about Windows 8?
Start migrating now to avoid another XPocalypse – Gartner
You'll find Yoda at the back of every IT conference
The piss always taking is he. Bastard the.
prev story

Whitepapers

5 things you didn’t know about cloud backup
IT departments are embracing cloud backup, but there’s a lot you need to know before choosing a service provider. Learn all the critical things you need to know.
Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Build a business case: developing custom apps
Learn how to maximize the value of custom applications by accelerating and simplifying their development.
Rethinking backup and recovery in the modern data center
Combining intelligence, operational analytics, and automation to enable efficient, data-driven IT organizations using the HP ABR approach.
Next gen security for virtualised datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.