出现未知错误 [英] An unknown error occurred
问题描述
我有一个想与后端连接的android应用. 使用MySQL构建数据库时,后端调用由PHP脚本进行. 我已将应用程序上传到hostagtor.
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.
我想在Google Cloud sql上迁移该数据库. 到目前为止,我要做的事情是:
I want to migrate that database on google cloud sql. Things I've done so far is:
- 在Google云存储上创建存储桶
- 上载了存储桶中的sql dump.
错误: -当我尝试将其上传到Google Cloud sql时,会引发错误!
Error: - When I am trying to upload it to the Google cloud sql, it throws an error!
在导入Clousql时,我写了:gs://mybucket/abc.sql,而数据库名称留为空白.
while importing into Clousql I wrote: gs://mybucket/abc.sql, while database name was left blank.
推荐答案
常见错误是:
-
转储文件开头缺少
use <database>
语句.
数据库不存在.
您在生成转储时未使用--hex-blob
选项.
You did not use --hex-blob
option while generating the dump.
这篇关于出现未知错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!