Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2005
    Posts
    5

    Unanswered: database.sql files help

    HI

    I have a file saved as "databname.sql"

    This file is like a back up of the database.

    What I would like to know is, how do I use php to populate all this information
    back into the database.

    Thanks
    Niva

  2. #2
    Join Date
    Sep 2004
    Posts
    64

    code

    You could parse the file with PHP and create mysql_exec commands. Alternatively, call the "mysql" binary from within php (if you have permission) and use the "mysql database < file" string.

    I suspect the php gurus will be more help than the database bods.

    try the PHP forums.

    a

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •