FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Off Topic / Otros temas How to read a .sql file?
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
How to read a .sql file?
Posted: Tue Sep 04, 2018 08:38 AM

Anybody knows how to extract data from a .sql file?

Thank you in advance for any information about the subject.

EMG

Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: How to read a .sql file?
Posted: Thu Sep 06, 2018 01:26 PM
Hi,

Open HeidiSql app. Connect to server and

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: How to read a .sql file?
Posted: Thu Sep 06, 2018 01:44 PM
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
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: How to read a .sql file?
Posted: Thu Sep 06, 2018 01:51 PM

I just tried HeidiSql and it starts asking of a SQL server, that I don't have.

EMG

Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: How to read a .sql file?
Posted: Thu Sep 06, 2018 02:01 PM

Enrico,

Download and install xampp packet from https://www.apachefriends.org/download.html

After start his Mysql server.

Regards

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: How to read a .sql file?
Posted: Thu Sep 06, 2018 02:09 PM

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

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: How to read a .sql file?
Posted: Fri Sep 07, 2018 01:33 PM

Enrico

I believe .sql files are just text .. try to open your file with notepad ..

Rick Lipkin

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: How to read a .sql file?
Posted: Fri Sep 07, 2018 01:42 PM
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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: How to read a .sql file?
Posted: Sat Sep 08, 2018 02:45 PM

Enrico, is a file of Microsoft SQL Management Studio ?

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: How to read a .sql file?
Posted: Sat Sep 08, 2018 03:03 PM

My customer said that it's a MySQL file, but I'm not sure at all...

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to read a .sql file?
Posted: Sun Sep 09, 2018 10:38 AM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: How to read a .sql file?
Posted: Sun Sep 09, 2018 11:34 AM

Already tried with phpMyAdmin: no luck.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to read a .sql file?
Posted: Sun Sep 09, 2018 03:39 PM

Enrico,

HeidySQL is also processing it nicely, have you tried it ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: How to read a .sql file?
Posted: Sun Sep 09, 2018 04:18 PM

Yes, please read the first messages of this thread.

EMG

Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: How to read a .sql file?
Posted: Wed Oct 17, 2018 04:01 AM

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.

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651

Continue the discussion