Zaq*_*san 11 mysql localhost phpmyadmin
当我尝试将现有数据库导入localhost时,我收到此错误.数据库导入到Web主机服务器,但导入到localhost.
错误是;
静态分析:
在分析过程中发现了2个错误.
Ending quote ' was expected. (near "" at position 28310)
4 values were expected, but found 3. (near "(" at position 28266)
Run Code Online (Sandbox Code Playgroud)
dwe*_*lle 15
PhpMyAdmin有点愚蠢,因为它无法导入它自己导出的内容.它''取代了单引号,而不是\'像以下那样在字符串上打破它的牙齿:
''I can''t do this anymore!''
Run Code Online (Sandbox Code Playgroud)
你可以:
''→ \',或进口途径mysql.exe:
mysql -uuser -ppass dbName < file.sql
Run Code Online (Sandbox Code Playgroud)