asmuth / clip

Create charts from the command line
https://clip-lang.org
Apache License 2.0
5.14k stars 386 forks source link

mysql_real_connect() failed: Access denied for user 'root'@'HOST #224

Closed Jonovono closed 5 years ago

Jonovono commented 9 years ago

Hi. I am trying to connect to a remote mysql db (on Google cloud sql).

I do this:

IMPORT TABLE user FROM 'mysql://HOST3306/DB?    username=root&password=PASSWORD';
SELECT * FROM user;

But then I get the error:

mysql_real_connect() failed: Access denied for user   'root'@'DIFFERENTHOSTFROMABOVE' (using password: YES) while executing query: IMPORT TABLE user FROM 'mysql://HOST:3306/DB?  username=root&password=PASSWORD'; SELECT * FROM user;

When I run

mysql -u gae -p -h HOST

In the terminal it connects fine.

I am on Yosemite.

fliiiix commented 9 years ago

Not sure but

Access denied for user 'root'

Here is the user root and here

mysql -u gae

its gae

So maybe trie something like

mysql -u root -p -h HOST

Jonovono commented 9 years ago

Oops. It also works if I use user gae in fnordmetric