Menu

#4095 (ok 4.0.8) NUL symbols added to the end of database dump file

4.0.7
fixed
None
1
2014-08-20
2013-09-22
kaalis
No

Hello,
I'm trying to export database and import into localhost.
I select 1 table, no compression, save output to file.
The same problem with 4.0.7-rc1.
Works perfect in 3.5.8.2.

Importing to localhost fails with:
----BEGIN CUT----
eNo1zDsKwzAURNGAu7eKWYAQlj+BqBNG2IanTyQlhvQp0rjP7iMbMuVwuDalkDQmhakDW6+h0EEp
yqXeDZH75jtrjHKUfU+PnBCygJmtLwJPW9H22eHCa2U2lbUUndEYZCuvFJd4GBHyURikumFbvS/E
xs8a753OODWX/35USB8h
----END CUT----
----BEGIN RAW----

ERROR: C1 C2 LEN: 1 2 11
STR:

MySQL: 5.5.33
USR OS, AGENT, VER: Win MOZILLA 5.0
PMA: 4.0.6
PHP VER,OS: 5.4.19 WINNT
LANG: en
SQL:

----END RAW----

In the end of dump are these symbols - check attachment. After editing them out, import is successfull.
What could cause this?

Nothing fancy with server. Simple Mac OS X 10.5.8 Server running php 5.2.15, apache 2.2.17, mysql 5.0.92.
No .htaccess files that affects PMA installation.

Please, advice.

Thank you.

1 Attachments

Discussion

  • Marc Delisle

    Marc Delisle - 2013-09-22

    Cannot reproduce this on my test server. Can you reproduce it on http://demo.phpmyadmin.net?

     
  • kaalis

    kaalis - 2013-09-22

    No, I can't.
    What can I do to track this problem down myself? Is there a debug level that would help?

     

    Last edit: kaalis 2013-09-22
  • franck

    franck - 2013-09-23

    Hello,

    I have the same problem on shared server,
    Version Apache 2.2.25
    Version PHP 5.3.27
    Version MySQL 5.5.33-31.1
    phpMyAdmin SQL Dump version 4.0.5

    I'm on ubuntu 12.04

    Regards,

    Franck

     
  • plejad

    plejad - 2013-09-24

    Look at the end of sql
    problem is last, empty line

     
  • kaalis

    kaalis - 2013-09-25

    Yes, I can read.
    Problem is why this last line is in the dump...

     
  • kaalis

    kaalis - 2013-09-28

    Also, i noted that
    3.5.8.2 dump file is utf-8 w/o bom
    4.0.7 dump file is ansi.

     
  • kaalis

    kaalis - 2013-09-28

    Finally I commented 956. line in export.php in root PMA folder. (ver.4.0.7)
    //PMA_Response::getInstance()->disable();

    And now dump is saving as it should. Don't know conseqences by doing this... but it works :)

    4.0.7 Dump file now is utf-8 w/o bom

     

    Last edit: kaalis 2013-09-28
  • Marc Delisle

    Marc Delisle - 2013-09-28
    • assigned_to: Marc Delisle
     
  • Marc Delisle

    Marc Delisle - 2013-09-28

    Val,
    I accept your solution. May I commit the patch in your name? and if so, what is your complete name, and which email address should I use in the commit?

     
  • kaalis

    kaalis - 2013-09-28

    If it's possible to use only Val as name and valmiera-9[at]inbox.lv as email
    or leave it anonymous ;)

     
  • Marc Delisle

    Marc Delisle - 2013-09-28
    • summary: NUL symbols added to the end of database dump file --> (ok 4.0.8) NUL symbols added to the end of database dump file
    • status: open --> resolved
    • Group: 4.0.6 --> 4.0.7
    • Priority: 5 --> 1
     
  • Marc Delisle

    Marc Delisle - 2013-10-06
    • Status: resolved --> fixed
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.