在Windows 64位上安装Cloud SQL代理时出现问题 [英] Problems installing Cloud SQL Proxy on Windows 64-bit

查看:118
本文介绍了在Windows 64位上安装Cloud SQL代理时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 10 64位操作系统上安装Google Cloud Platform的Cloud SQL代理,因此可以使用Python脚本将数据转储到SQL中。我正在关注 本指南 >进行设置。

I'm trying to install Cloud SQL Proxy for Google Cloud Platform on my Windows 10 64 bit OS, so I can use Python scripts to dump data into SQL. I'm following this guide to get it set up.

我从控制台创建了一个项目和一个Google Cloud SQL实例,没有任何问题,并且它在SDK外壳中显示没有任何问题。 。下载并安装代理安装程序后,将打开一个对话框窗口,然后关闭该窗口,直到我可以阅读它为止。

I created a project and a Google Cloud SQL instance from the Console without any issues, and it shows up in the SDK shell without any problems. After downloading the proxy installer and installing it, a dialog window opens up and then closes before I can read it.

当我转到Google Cloud SDK外壳并尝试使用以下命令启动Cloud SQL代理时: cloud_sql_proxy.exe -instances = [MyInstanceConnectionName] = tcp:3306

When I go to the Google Cloud SDK shell and try to start the Cloud SQL Proxy with: cloud_sql_proxy.exe -instances="[MyInstanceConnectionName]"=tcp:3306

无论我尝试多少次,它都会引发错误 Cloud Sql Proxy不被识别为内部或外部命令,可操作程序或批处理文件。我已经尝试过重新下载并重新执行该文件,但仍然无法使用。

No matter how many times I try, it throws the error "Cloud Sql Proxy is not recognized as an internal or external command, operable program or batch file." I already tried re-downloading and re-executing the file but it still won't work.

我在Windows 10 64位系统上安装了Python 3.6,Anaconda和Google Cloud SDK外壳。

I have Python 3.6 with Anaconda and Google Cloud SDK shell installed on Windows 10 64-bit.

推荐答案

下载cloud_sql_proxy文件时,请确保按照指南中的说明对其进行重命名。还要确保将其保存在运行它的根目录中。例如。如果从C:/ users / desktop> .\cloud_sql_proxy.exe -instances = [YOUR_INSTANCE_CONNECTION_NAME] = tcp:3306运行命令,则cloud_Sql_proxy文件必须位于C根驱动器中。

When you download the cloud_sql_proxy file make sure to rename it as per instructions in the how to guide. Also make sure you save it in the root directory of where you will run it from. E.g. If you are running the command from C:/users/desktop>.\cloud_sql_proxy.exe -instances="[YOUR_INSTANCE_CONNECTION_NAME]"=tcp:3306 then the cloud_Sql_proxy file must be located in the root C drive.

这篇关于在Windows 64位上安装Cloud SQL代理时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆