How to read a .sql file?
- Enrico Maria Giordano
- Posts: 8776
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 8 times
- Contact:
How to read a .sql file?
Anybody knows how to extract data from a .sql file?
Thank you in advance for any information about the subject.
EMG
Thank you in advance for any information about the subject.
EMG
- Enrico Maria Giordano
- Posts: 8776
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 8 times
- Contact:
Re: How to read a .sql file?
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
- Enrico Maria Giordano
- Posts: 8776
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 8 times
- Contact:
Re: How to read a .sql file?
I just tried HeidiSql and it starts asking of a SQL server, that I don't have.
EMG
EMG
Re: How to read a .sql file?
Enrico,
Download and install xampp packet from https://www.apachefriends.org/download.html
After start his Mysql server.
Regards
Download and install xampp packet from https://www.apachefriends.org/download.html
After start his Mysql server.
Regards
- Enrico Maria Giordano
- Posts: 8776
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 8 times
- Contact:
Re: How to read a .sql file?
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
EMG
- Rick Lipkin
- Posts: 2677
- Joined: Fri Oct 07, 2005 1:50 pm
- Location: Columbia, South Carolina USA
- Been thanked: 2 times
Re: How to read a .sql file?
Enrico
I believe .sql files are just text .. try to open your file with notepad ..
Rick Lipkin
I believe .sql files are just text .. try to open your file with notepad ..
Rick Lipkin
- Enrico Maria Giordano
- Posts: 8776
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 8 times
- Contact:
Re: How to read a .sql file?
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
- cnavarro
- Posts: 6608
- Joined: Wed Feb 15, 2012 8:25 pm
- Location: España
- Has thanked: 6 times
- Been thanked: 8 times
Re: How to read a .sql file?
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
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
- Enrico Maria Giordano
- Posts: 8776
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 8 times
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42739
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 105 times
- Been thanked: 108 times
- Contact:
Re: How to read a .sql file?
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
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
- Enrico Maria Giordano
- Posts: 8776
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 8 times
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42739
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 105 times
- Been thanked: 108 times
- Contact:
- Enrico Maria Giordano
- Posts: 8776
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Has thanked: 1 time
- Been thanked: 8 times
- Contact:
-
- Posts: 467
- Joined: Sun Oct 30, 2005 6:37 am
- Location: Guangzhou(Canton),China
- Contact:
Re: How to read a .sql file?
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.
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
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651