[英]PHPMYADMIN error while importing big sql dump
我正在嘗試將大型SQL轉儲導入到我的mysql數據庫中,但出現以下錯誤。 通過PHPMYADMIN接口,我沒有設法導入它,它說太龐大了。 因此,我嘗試使用命令行: mysql -uroot -p dbsnp < SNP_HGVS.sql
但出現此錯誤: ERROR: ASCII '\\0' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. Set --binary-mode to 1 if ASCII '\\0' is expected. Query:
ERROR: ASCII '\\0' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. Set --binary-mode to 1 if ASCII '\\0' is expected. Query:
ERROR: ASCII '\\0' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. Set --binary-mode to 1 if ASCII '\\0' is expected. Query:
d.L'。
您知道如何解決此問題嗎? 非常感謝。
在我看來轉儲文件的字符不是UTF-8。根據錯誤,您需要打開--binary-mode。 請檢查鏈接:[ 從SQL轉儲還原數據庫時啟用二進制模式
根據澄清問題和意見:
未正確設置源SQL轉儲和MySQL格式。 使用正確的MySQL配置/格式重新轉儲數據可解決此問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.