New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exported SQL is corrupted #12453
Comments
Use *_real_escape string functions provided by connectors to escape strings while exporting Fix phpmyadmin#12453 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
This is caused because the double-quotes |
Use *_real_escape string functions provided by connectors to escape strings while exporting Fix phpmyadmin#12453 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Use *_real_escape string functions provided by connectors to escape strings while exporting Fix phpmyadmin#12453 Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Hi, just bringing this issue back because I'm also facing same problem. What should we do with this corrupted exported database? It's gone? No workaround? |
@Agimovel Which phpMyAdmin version are you using to perform your export? This has been fixed since November of 2016. |
Hi, I found out to be another issue. One of db tables had a namespace, and that namespace broke the import from that line to the rest of them. Should I open an issue? We don't use tables with namespaces, I don't even think that's possible or secure. I have no idea why such table was on this db test, maybe one of our tests failed creating this abomination. |
Steps to reproduce
Exporting DB/table with mysql cli will produce a valid SQL.
Expected behaviour
Export should produce a valid SQL.
Actual behaviour
Error after running the SQL
Static analysis:
1 errors were found during analysis.
MySQL said: Documentation
Server configuration
Operating system:
Debian latest stable
Redhat 6.8
Web server:
Apache/2.4.10
Apache/2.2.15
Database:
MySQL 5.6.30
PHP version:
PHP 7.0.9
phpMyAdmin version:
4.6.3
4.7.0-dev
please see attached files required to reproduce the issue
insert.sql.txt
html-content.html.txt
update-after-export.sql.txt
The text was updated successfully, but these errors were encountered: