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

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,189
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=-
 

south

DNF Addict
Legacy Exclusive Member
Joined
Dec 31, 2006
Messages
4,689
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,911
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,428
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:
 

tekz999

Level 10
Legacy Exclusive Member
Joined
Jun 15, 2003
Messages
6,170
Reaction score
29
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,589
Reaction score
634
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.

The Rule #1

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

Sedo - it.com Premiums

IT.com

Premium Members

AucDom
UKBackorder
Be a Squirrel
MariaBuy

Our Mods' Businesses

URL Shortener
UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom