This type of questions have been asked many times before.I have tried almost every answer but can't figure out my problem.
i am having problem in mysql database connectivity in cloud9.io environment in sails js project.
Steps
1)mysql-ctl start
2)phpmyadmin-ctl install
it worked and opened phpmyadmin page for me.i created db there.
3)mysql-ctl cli
4)mysql> \r
here's the problem its giving
connection id:1
Current database: *** NONE
There is no error in console while running sails lift.it gives error on executing queries.i have tried all following links related to my problem but no use.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
and few more.