Page 1 of 1
How to read a .sql file?
Posted: Tue Sep 04, 2018 8:38 am
by Enrico Maria Giordano
Anybody knows how to extract data from a .sql file?
Thank you in advance for any information about the subject.
EMG
Re: How to read a .sql file?
Posted: Thu Sep 06, 2018 1:26 pm
by hmpaquito
Hi,
Open HeidiSql app. Connect to server and
Re: How to read a .sql file?
Posted: Thu Sep 06, 2018 1:44 pm
by Enrico Maria Giordano
hmpaquito wrote:Hi,
Open HeidiSql app. Connect to server and
Which server? I have no server, only a .sql file. Could it still be open?
EMG
Re: How to read a .sql file?
Posted: Thu Sep 06, 2018 1:51 pm
by Enrico Maria Giordano
I just tried HeidiSql and it starts asking of a SQL server, that I don't have.
EMG
Re: How to read a .sql file?
Posted: Thu Sep 06, 2018 2:01 pm
by hmpaquito
Enrico,
Download and install xampp packet from
https://www.apachefriends.org/download.html
After start his Mysql server.
Regards
Re: How to read a .sql file?
Posted: Thu Sep 06, 2018 2:09 pm
by Enrico Maria Giordano
Thank you, but I'm searching for a way to extract data from the .sql file programmatically. I can't install anything on the customer's PC.
EMG
Re: How to read a .sql file?
Posted: Fri Sep 07, 2018 1:33 pm
by Rick Lipkin
Enrico
I believe .sql files are just text .. try to open your file with notepad ..
Rick Lipkin
Re: How to read a .sql file?
Posted: Fri Sep 07, 2018 1:42 pm
by Enrico Maria Giordano
Rick Lipkin wrote:Enrico
I believe .sql files are just text .. try to open your file with notepad ..
Mine is not text, it's a binary file. I have to ask my customer if that file is encoded or corrupted…
EMG
Re: How to read a .sql file?
Posted: Sat Sep 08, 2018 2:45 pm
by cnavarro
Enrico, is a file of Microsoft SQL Management Studio ?
Re: How to read a .sql file?
Posted: Sat Sep 08, 2018 3:03 pm
by Enrico Maria Giordano
My customer said that it's a MySQL file, but I'm not sure at all...
EMG
Re: How to read a .sql file?
Posted: Sun Sep 09, 2018 10:38 am
by Antonio Linares
Enrico,
phpMyAdmin lets you import a SQL file and process it
The file can be inside a ZIP (gzip, bzip2, zip) file
In example, all these forums (MySQL, over ten years) are exported into a single SQL file
Re: How to read a .sql file?
Posted: Sun Sep 09, 2018 11:34 am
by Enrico Maria Giordano
Already tried with phpMyAdmin: no luck.
EMG
Re: How to read a .sql file?
Posted: Sun Sep 09, 2018 3:39 pm
by Antonio Linares
Enrico,
HeidySQL is also processing it nicely, have you tried it ?
Re: How to read a .sql file?
Posted: Sun Sep 09, 2018 4:18 pm
by Enrico Maria Giordano
Yes, please read the first messages of this thread.
EMG
Re: How to read a .sql file?
Posted: Wed Oct 17, 2018 4:01 am
by ShumingWang
Some table fields might be binnary data type, restore data to mysql server
mysql.exe -h xxxip -u root -p -C databasename < xxx.sql
Then with anytools like mysql.exe -h xxxip -u root -p can login and browse.