An unknown error occurred

无人久伴 提交于 2019-12-13 02:47:44

问题


I have an android app which I would like to connect to my backend. The backend calls are made by PHP scripts while the database is built using mysql. I uploaded the app on hostagtor.

I want to migrate that database on google cloud sql. Things I've done so far is:

  • Created a bucket on google cloud storage
  • Uploaded the sql dump in the bucket.

Error: - When I am trying to upload it to the Google cloud sql, it throws an error!

while importing into Clousql I wrote: gs://mybucket/abc.sql, while database name was left blank.


回答1:


My problem was the file I uploaded wasn't encoded as UTF-8 without BOM.




回答2:


Common mistakes are:

  1. Missing use <database> statement at the beginning of the dump file.

  2. The database does not exists.

  3. You did not use --hex-blob option while generating the dump.



来源:https://stackoverflow.com/questions/19225271/an-unknown-error-occurred

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!