Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempted to use login credentials, but they were invalid #420

Closed
ghost opened this issue Jan 7, 2019 · 9 comments
Closed

Attempted to use login credentials, but they were invalid #420

ghost opened this issue Jan 7, 2019 · 9 comments

Comments

@ghost
Copy link

ghost commented Jan 7, 2019

C:\Program Files\MySQL\MySQL Server 8.0\bin>perl mysqltuner.pl --host abcd.rds.amazonaws.com --user username --pass 'password' --mysqladmin "C:\Program Files\MySQL\MySQL Server 8.0\bin" --mysqlcmd "C:\Program Files\MySQL\MySQL Server 8.0\bin" --forcemem 1024
[--] * Windows OS(Win10) is not fully supported.

MySQLTuner 1.7.14 - Major Hayden major@mhtx.net
Bug reports, feature requests, and downloads at http://mysqltuner.com/
Run with '--help' for additional options and output filtering

[--] Skipped version check for MySQLTuner script
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
[--] Performing tests on abcd.rds.amazonaws.com:3306
[!!] Attempted to use login credentials, but they were invalid

C:\Program Files\MySQL\MySQL Server 8.0\bin>

I am getting above error when running mysqltuner script from remote machine on AWS RDS instance.

@ghost
Copy link
Author

ghost commented Jan 7, 2019

C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqladmin ping
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'ODBC'@'localhost' (using password: NO)'

C:\Program Files\MySQL\MySQL Server 8.0\bin>

Does this causing issue here ?

@jmrenouard
Copy link
Collaborator

Yes,
user /password options should be used for credentials.

@ghost
Copy link
Author

ghost commented Jan 7, 2019

I am new to MySQL, Can you please provide more details on this ?

@ghost
Copy link
Author

ghost commented Jan 7, 2019

I wanted to know how to fix mysqltuner issue as mentioned above ?
[--] Performing tests on abcd.rds.amazonaws.com:3306
[!!] Attempted to use login credentials, but they were invalid

@jmrenouard
Copy link
Collaborator

Hi @akashsarpate

Have a look at FAQ
Question: Why does MySQLTuner keep asking me the login credentials for MySQL over and over?

And official documentation of course:
https://dev.mysql.com/doc/refman/8.0/en/password-security-user.html

This should help you :)

@ghost
Copy link
Author

ghost commented Jan 7, 2019

I have updated password in my.cnf file but still getting same error:

operable program or batch file.
[--] Performing tests on abcd.rds.amazonaws.com:3306
[!!] Attempted to use login credentials, but they were invalid

C:\Program Files\MySQL\MySQL Server 8.0\bin>

@jmrenouard
Copy link
Collaborator

Hi @akashsarpate

Do you try with mysql command ?

If it's not working manually with mysql/mysqladmin, it won't work with mysqltuner.

Best regards,

@ppelgrims
Copy link

That's actually good advice

mysql: [ERROR] unknown variable 'pass=************'

Docs should be updated to:
~/.my.cnf

[client]
user=someusername
password=thatuserspassword

jmrenouard added a commit that referenced this issue Feb 4, 2019
Attempted to use login credentials, but they were invalid (#420)
@jmrenouard
Copy link
Collaborator

README updated with right config.

I close this issue.
Feel free to reopen it fi need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants