简体   繁体   English

用于Heroku / ClearDB的MySQL Workbench-登录问题?

[英]MySQL Workbench for Heroku/ClearDB - login problems?

I have my clearDB username and password from Heroku. 我有Heroku的clearDB用户名和密码。 I also have the URL to connect to the database by using: 我也有使用以下方法连接到数据库的URL:

heroku config --app myappname

I have set up a connection using MySQL Workbench, and if I test the connection using the username and password that I got from Heroku it connects successfully. 我已经使用MySQL Workbench建立了连接,如果我使用从Heroku获得的用户名和密码测试连接,则连接成功。 However if I try to run ANY SQL command, such as: 但是,如果我尝试运行ANY SQL命令,例如:

CREATE DATABASE MY_DATABASE_NAME;

I get the following error 我收到以下错误

Error Code: 1044. Access denied for user 'myherokuusername'@'%' to database 'MY_DATABASE_NAME'

Normally I would expect 通常我会期望

'myherokuusername'@'%' 'myherokuusername'@'%'

to say

'myherokuusername@localhost' 'myherokuusername @ localhost'

which is possibly the source of the problem. 这可能是问题的根源。 However I can't see anywhere to set that user "myherokuusername" is @localhost? 但是我看不到任何地方可以设置用户“ myherokuusername”为@localhost?

Has anyone had this before or have any idea what the solution would be? 有人以前有过这个吗,或者不知道解决方案是什么? I'm not particularly experienced with MySQl, I can run basic queries etc but the admin side of it I'm not too familiar with so any help would be appreciated. 我对MySQl并不是特别有经验,我可以运行基本查询等,但是我对它的管理方面不太熟悉,因此不胜感激。

It turned out to be a general problem with our heroku app that day. 事实证明,那天是我们的heroku应用程序的一个普遍问题。 Tried again the next day and mySQL was working as it should. 第二天再次尝试,mySQL正常运行。 If anyone has the same issue it may be worth waiting a day and trying again, if you can afford to. 如果有人遇到同样的问题,如果可以的话,可能值得等待一天并重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM