Welcome Guest, Not a member yet? Register   Sign In
SQL import
#1

[eluser]Unknown[/eluser]
I use dbutil to save out portions of my MySQL database into plain text SQL files, which works great.
However, I can't seem to figure out how to read the SQL files back in. Right now, I use a system call along the lines of "mysql < myfile.sql", which isn't exactly elegant.

I'm thinking I might have to do something like read the SQL file in, then pipe it line by line to $this->db, but I don't know how. What's the right way to do this?


Messages In This Thread
SQL import - by El Forum - 04-01-2010, 08:06 PM
SQL import - by El Forum - 04-02-2010, 12:46 AM
SQL import - by El Forum - 04-27-2010, 11:01 AM
SQL import - by El Forum - 04-18-2012, 08:17 AM
SQL import - by El Forum - 04-18-2012, 03:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB