Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Sedo

How do I open and sql file on my desktop?

Status
Not open for further replies.

A D

Level 14
Legacy Exclusive Member
Joined
Feb 20, 2003
Messages
15,040
Reaction score
1,188
I have old backed up .sql files that I want to open and read the data.

Can I do this with excel or some tricky converter software?

thanks for the help,

-=DCG=-
 
Dynadot - Expired Domain Auctions

south

DNF Addict
Legacy Exclusive Member
Joined
Dec 31, 2006
Messages
4,688
Reaction score
168
Depends on what you mean by "read". Notepad will open them for you to view the raw text.

It also depends on what type of sql database it was.

For mysql I like toad

Another option would be create a database on a server and just put it there to look at, either with with toad, webmin, phpmyadmin, etc..
 

JuniperPark

Level 9
Legacy Exclusive Member
Joined
Aug 3, 2003
Messages
2,909
Reaction score
90
I only work with MsSQL, but the .SQL files are just text. It's a set of SQL commands, usually opened in SQL Analyzer for testing and execution.
 

katherine

Country hopper
Legacy Exclusive Member
Joined
Jul 9, 2005
Messages
8,427
Reaction score
1,290
Best is to create a DB on a server using whichever SQL platform the file belongs to (mysql ?), import the data, then browse with phpmyadmin or export to excel.
 

whitebark

Level 9
Legacy Platinum Member
Joined
Jul 9, 2006
Messages
3,026
Reaction score
26
Any software that can read a .txt file can read a .sql file. :eek:k:
 
T

tekz999

Guest
I have the king of the world solution: Notedpad.exe

Solved.
 

krossat

Rohan
Legacy Platinum Member
Joined
Jun 13, 2007
Messages
1,062
Reaction score
9
are you sure it is a .sql file?
As .sql files carry the sql code and not data. you run the .sql file commands on a compatible database application. do you also have .dat files or any other accompanying files with the .sql files?

I have old backed up .sql files that I want to open and read the data.

Can I do this with excel or some tricky converter software?

thanks for the help,

-=DCG=-
 

draggar

þórr mjǫlnir
Legacy Exclusive Member
Joined
Dec 26, 2007
Messages
7,357
Reaction score
223
Depends on what you mean by "read". Notepad will open them for you to view the raw text.

It also depends on what type of sql database it was.

For mysql I like toad

Another option would be create a database on a server and just put it there to look at, either with with toad, webmin, phpmyadmin, etc..

Yep, Notepad is OK, Excel is good for it, too (I'm sure the Open Office equivalents will work, too).
 
Joined
Oct 12, 2003
Messages
1,610
Reaction score
638
depends what type of sql file it is. Not all sql files can be read in a text editor - mysql databases for example. If it's just a list of the actual SQL dump then it's ok - however the compiled/compressed database won't be text-readable.
 

Dale Hubbard

Formerly 'aZooZa'
Legacy Exclusive Member
Joined
Jan 24, 2003
Messages
5,578
Reaction score
91
cat file.sql |less

or even

less file.sql

or if compressed

gzip -d file.sql.gz
less file.sql

'less' will give you an error warning if the file's binary

sorry - this is Linux - not Win
 
Last edited:
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 5) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Sedo - it.com Premiums

IT.com

Premium Members

MariaBuy

Upcoming events

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom