Jump to content

Import in phpmyadmin .BIN file


pascal_22

Recommended Posts

Hello to all!!

 

I really have a problem and i can t find any solution on the web.

 

I'M trying to import in mysql database (using phpmyadmin on windows) a .BIN file. but it doesnt work.

I receive this error : 

 MySQL a répondu: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
    A?S' at line 1 

Any suggestion?

 

thanks a lot 

Link to comment
https://forums.phpfreaks.com/topic/282649-import-in-phpmyadmin-bin-file/
Share on other sites

What charset encoding are you using to get the binary sting from your DB or something else, for example? Make sure that this binary data is saved into a file under UTF-8 encoding charset without BOM, then try again I thing that's your problem. You can post out this problematic string here for testing purposes if you want it.

Hello JAzzman,

 

Thanks for your answer!

 

In fact, since one year, i buy from ip2location a database that locate user from ip..... yesterday, i upgrade to a better database(more information) from ip2location.

 

Usualy, the download has a mysql dump file but this upgrape, only have a .bin file and a .cvs file.

So i thought that the .bin file was the same as mysql dumpfile... but it doesnt work... so i read the help from ip2location and they said that we need to create table and after import .csv file...

 

 

When i try to import .bin file in phpmyadmin.... the char set was utf8!!

The advantage of the dump file, was it automaticly create the table then import row.....

does a .bin file does the same?

Thanks a lot

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.