If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > database.sql files help

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-09-05, 10:44
nivashni nivashni is offline
Registered User
 
Join Date: Mar 2005
Posts: 5
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
Reply With Quote
  #2 (permalink)  
Old 03-09-05, 12:23
arpoodle arpoodle is offline
Registered User
 
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On