简体   繁体   English

无法从Zapier#1044连接到数据库-用户被拒绝访问

[英]cannot connect to database from zapier #1044 - Access denied for user

I am trying to connect Zapier to my Database. 我正在尝试将Zapier连接到我的数据库。 Zapier has very limited support for this and seem to be going round in circles. Zapier对这一点的支持非常有限,并且似乎在转圈。

I need to GRANT SELECT to a user on my database with this code; 我需要使用以下代码将SELECT授予我的数据库中的用户;

GRANT SELECT ON my-database-here.my-table-here TO 'user-here'@'ip-address-here' IDENTIFIED BY 'my-password-here';

The error i receive is; 我收到的错误是;

#1044 - Access denied for user 'xxx'@'localhost' to database 'xxxx'

The user has ALL PRIVILEGES but can't seem to get it to work. 用户拥有所有特权,但似乎无法正常使用。 Any help here could be greatly received. 在这里的任何帮助都可以得到很大的帮助。

Thanks 谢谢

You may need to set up a root account for your MySQL database: 您可能需要为MySQL数据库设置一个根帐户:

In the terminal type: mysqladmin -u root password 'root password goes here' 在终端中输入: mysqladmin -u root password 'root password goes here'

And then to invoke the MySQL client: mysql -h localhost -u root -p 然后调用MySQL客户端: mysql -h localhost -u root -p

you have 2 issues: 您有2个问题:

1 => mysql -uroot -p should be typed in bash (also known as your terminal) not in MySQL command-line. 1 => mysql -uroot -p应该在bash(也称为终端)中键入,而不是在MySQL命令行中键入。 You fix this error by typing. 您通过键入来解决此错误。

 exit

in your MySQL command-line. 在您的MySQL命令行中。 Now you are back in your bash/terminal command-line. 现在您又回到了bash / terminal命令行。

You have a syntax error: 您有语法错误:

mysql -uroot -p;

the semicolon in front of -p needs to go. -p前面的分号需要删除。 The correct syntax is: 正确的语法是:

mysql -uroot -p

type the correct syntax in your bash commandline. 在bash命令行中键入正确的语法。 Enter a password if you have one set up; 如果设置了密码,请输入密码; else just hit the enter button. 否则,只需按Enter键。 You should get a response that is similar to this: 您应该得到类似于以下的响应:

在此处输入图片说明

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

相关问题 连接错误(1044)用户被拒绝访问 - Connect Error (1044) Access denied for user 错误 1044 拒绝用户 ''@'localhost' 访问数据库 - Error 1044 access denied for user ''@'localhost' to database 将数据库导入phpmyadmin#1044 - 拒绝用户访问 - importing a database into phpmyadmin #1044 - Access denied for user 错误代码:1044:用户''''%'访问被拒绝到数据库 - Error Code: 1044: Access denied for user ' ' '@' '%' to database `1044 (42000): 用户 'user_admin'@'%' 对数据库 'mysql' 的访问被拒绝 - `1044 (42000): Access denied for user 'user_admin'@'%' to database 'mysql'` 1044 - 用户 'user'@'localhost' 拒绝访问数据库 'db' - 1044 - Access denied for user 'user'@'localhost' to database 'db' phpMyAdmin-#1044-用户被拒绝访问 - phpMyAdmin - #1044 - Access denied for user MySQL 1044(42000):使用Mac对用户'@'localhost'到数据库'mysql'的访问被拒绝 - MySQL 1044 (42000): Access denied for user ' '@'localhost' to database 'mysql' with Mac #1044-拒绝用户'root'@'localhost'访问数据库'information_schema' - #1044 - Access denied for user 'root'@'localhost' to database 'information_schema' 错误1044(42000):用户'@'localhost'对数据库'mysql'的访问被拒绝 - ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM