Handy hint: Debugging your database web application
Submitted by rimian on Tue, 07/08/2008 - 03:22
I'm working on someone else's web application and I can't work out where a particular bug is because the previous developer was sloppy. The code is written half and English and half in Spanish which means the next developer needs to be bi-lingual and, on top of that, the English part is full of spelling errors so the table names in the database are wrong.
Here's how to work out what tables have been updated:
Export the database to a file with mysqldump:
mysqldump dbname > tempfile1.txt
Query your website then do it again to another file
mysqldump dbname > tempfile.txt
Compare with diff
diff tempfile1.txt tempfile2.txt
This should output the lines that have been updated in your database dump.
New forum topics
- Sydney web developer wanted
- WANTED Web Developer / Designer- unique and exciting project in Perth (The birth of a new brand)
- Outsource programming work to my people India - great rates, reliable work.
- Looking for part-time Web development jobs in Melbourne
- PHP programmer available for contract and freelance work.
- A Small Easy Project For Programmer
- PHP, MySQL, Apache, Linux (LAMP) Developer Available (Sydney West)
- Selenium - Testing IDE for Firefox
- FWD Freelancers Listing
- Australian Drupal Developers
- Seeking Ruby on Rails developers - blue chip client; great rates
- Drupal Australia IRC
- Melbourne/Adelaide based developer required
- Looking to keep a couple of my team members busy
- Interested in working for equity rather than cash?

Post new comment