Jump to content

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 

Edited by pascal_22
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

Ok thanks!

 

I send a message to their support team... for asking: should i use query the database(php,mysql) or query a .bin file

Which way is the best? i mean for speed,performance,less cpu usage, less memory usage....?

 

Thanks!

Edited by pascal_22
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.