in reply to Parse PHP or Perl and Reconstruct MySQL Schema

There are also server-side interactions that may never appear in your PHP code: Unless you get all of these right, the web site might not work like it used to. All of these complicate a general solution to the problem. You'll have to use your intuition about how things should work behind the scenes.

Replies are listed 'Best First'.
Re: Hidden Interactions
by UnderMine (Friar) on Jun 05, 2006 at 21:42 UTC
    Give that the system appears to be a port of an existing MYSQL database it is unlikely that Views, Stored Procedures or Triggers will be an issue as there features were added in MYSQL 5. Views, Triggers and Stored Procs

    Historically MYSQL databases have not tended to use Foreign Keys to the same degree as Oracle and other relational databases. Foreign keys only work with innoDB tables FOREIGN KEY Constraints

    Subselects were added with MYSQL 4.1 SubQuery Support. I recently came across some historic code that attempted to get around this by creating temporary HEAP tables on the fly. :(

    Grants may be an issue especially if you have any exotic code (like creation of temp tables).

    Hope it helps
    UnderMine