how to connect to the command line of mysql

0

I have set up a new instance in Lightsail with Debian 11 LAMP stack,

  1. Connected PhpMyAdmin through a tunnelled PuTTY and uploaded my data which looks good.
  2. Connected with FIleZilla and uploaded some php which works, and need to connect to the MySql with command line.

I have used mysql -u bitnami -p with password in the PuTTY command line and get ERROR 1045 (28000): Access denied for user 'bitnami'@'localhost' (using password: YES).
I have tried all the passwords I have used with this and am getting nowhere, not sure what i am missing. Can anyone help please?

  • Sorry to waste time, found the solution, log in with root and bitnami password!

asked a year ago397 views
1 Answer
0

You need to provide a hostname in that command.

mysql --host ${HOST} --user test_dba --port 3306 -p
AWS
MODERATOR
philaws
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions