Sql Access denied


#1

I follow https://docs.c9.io/docs/setup-a-database to setup SQL like below:

$ mysql-ctl install
$ mysql-ctl cli
$ mysql

but it pulls out
ERROR 1045 (28000): Access denied for user 'ubuntu'@'localhost' (using password: NO)
anyone help pleaase!


#2

Try running your command using sudo.

sudo mysql


#3

thankyou very much, it works.