Recreating MySQL Databases
One of the more common MySQL-related questions I get is how to transfer a database from one computer to another, or just how to recreate one in general. There are command-line tools that come with the MySQL server expressly for this purpose (mysqldump and mysqlimport). However, most people prefer to avoid using command-line tools, if they can. You can also use the GUI MySQL Administrator. This application has Backup and Restore options. (I write about the MySQL Administrator in my MySQL, Second Edition (Visual QuickStart Guide)
book.) That’s a fine application, but you may not be able to run a GUI tool on the destination server (e.g., a hosted Web site). What I almost always use is phpMyAdmin. This Web-based PHP interface to MySQL is installed on pretty much every hosted server and you can quickly install it on your own computer as well. Here’s how you would use it… (continue reading…)
My Forthcoming E-Commerce Book
Later this year I’m going to write an e-commerce with PHP and MySQL book for Peachpit Press. This is a topic that’s often been requested by my readers and one I’m happy to finally address. I have written e-commerce chapters in my PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide
and PHP 5 Advanced: Visual QuickPro Guide
books, but not to this extent. Specifically, those examples were unable to demonstrate the payment gateway system, as that’s so particular to each individual situation. This new book, whose title is still being determined, will cover everything you need to know to create an e-commerce site using PHP and MySQL. I’m going to describe my intentions for the book here, then ask for any questions, comments, and suggestions that you, the potential reader, may have. (continue reading…)
Twenty Web Development Tips
Somewhat randomly I’ve recently come across two very useful articles, each of which contains ten Web development tips. The first is at hackification, and is called Ten Web Development Tips I Wish I’d Known Two Years Ago. This seems to be a generally good blog, with lots of stuff worth reading. In this particular article, I also heartedly agree with the author’s suggestions that you should…
- Use a browser development plug-in, like Firebug and YSlow
- Learn JavaScript
This author also mentions using a reset stylesheet, something I wasn’t familiar with but is also mentioned in…
…the 10 Dirty Little Web Development Tricks article at Yongfook. That author also recommends using a versioning system like SVN (to control the different versions of files as you work with them), which I feel makes more sense if you’re working on something with a team. Along with recommendations to learn the jQuery JavaScript framework and the Zend PHP framework, the author also suggests you take a break, perhaps the best piece of debugging advice that I’ve ever also given (I always include that in my books). There’s also some best-practices there related to using frameworks and MVC approaches to sites.