View Full Version : How do I read/open an .sql file?
dementic
Jan 14th 2008, 1:48 pm
I have an old database backup from my oscommerce store stored as an .sql file. I would like to browse through the contents but I unfortunately don't know what to do with an sql file.
In terms of database programs, I own MS Access 2003.
Any help is appreciated.
mybluehair
Jan 14th 2008, 2:04 pm
an sql file is simply a text file. this file can be opened in any text editor (say maybe notepad, for instence)
dementic
Jan 14th 2008, 2:27 pm
thank you for your fast reply,
but i wish to browse its content, not just view text.
AstarothSolutions
Jan 14th 2008, 3:19 pm
There is no "content" it is simply a text file as said above.
What are you wanting to "see"?
dementic
Jan 14th 2008, 3:52 pm
like a database browser or something
Dondon2d
Jan 14th 2008, 3:55 pm
Use phpmyadmin, then import the .sql file, and browse.
rkquest
Jan 14th 2008, 11:47 pm
everything the .sql file contains are commands.. so you won't be able to browse the tables unless you import it to a database server. What kind of database are we talking about anyway? do you have the database server installed in your computer?
AstarothSolutions
Jan 15th 2008, 5:27 am
Either you will have to install the db server and then use a GUI interface for it to see it or alternatively there are a few bits of software that will do this as a stand alone without the need for the server.
You will need to search for the relevant server/ software depending on if the commands are for mysql/ ms sql/ oracle etc
iwyrobi
Jan 15th 2008, 7:26 pm
i think oscommerce use mysql. so as dondon say you need phpmyadmin or other gui that support mysql command.
just execute (import) the sql file. then you can browse it
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.