error in database connection in cloud9.io - mysql

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.
Access denied for user 'root'#'localhost' while attempting to grant privileges. How do I grant privileges?
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.

Related

Can't reinstall mariadb by 'Access denied for user 'root'#'localhost' (using password: YES)' error

I'm a archlinux user. Traying to solve another problem I follow the instructions of this post. Now when I try to install mariadb again the following message appears
mysql.user table already exists!
even when I eliminate everything related to mariadb. So I skip that and continue to the others steps of the installation, but I can't go too far because I can't create a new user. The following message appears
Access denied for user 'root'#'localhost' (using password: YES)
and
Access denied for user 'root'#'localhost' (using password: NO)
Any idea about how to solve this?
I tried write in the my.cnf file the skip-grant-tables option, but it didn't work.

Connect mamp6 to mysql

I'm having problems with mamp 6 on mac. Always giving me an error in every connection to BD. does anyone have the solution?
Error:"Connection failed: Access denied for user 'root'#'localhost' (using password: NO)"

mysql error Access denied for user 'root'#'localhost'

I just installed MySQL on my pc using tutorial on the YouTube every thing set to default options during the installation the tutorial said that after the installation done I should open the MySQL 8.0 commend line client and then I should type the password to connect the database but when I open it and after I type my password it's close when I press enter so I tried to use the work MySQL workbench it's gives me this popup error I search on the internet for solution I got this here but this solution for ubuntu none of the answers are not applicable on windows but some other solution gives me some other errors :
C:\Users\husam>mysql -u root -p
Enter password: ***************
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
C:\Users\husam>mysql
ERROR 1045 (28000): Access denied for user 'ODBC'#'localhost' (using password: NO)
I want to use the MySQL with ruby on rails project on windows 10
the issue wan in my password it's contain ' so I removed it and everything works fine

I am facing issues while starting mysql on macOS

Whenever I install mysql on macOS I get this error while starting it
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: NO)
I have tried the password which I got during the installation. The error then is :
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
I have also tried using root as a password or completely letting it blank but none of this worked
NOTE: I am using mysql using the MAMP setup and it is running just fine there.
It is located at:
/Applications/MAMP/Library/bin/mysql
I am able to run as root from there. Is it due to I am trying to run as root from two places? Please help me out.

zpanel installation - reinstall mysql issue -CentOS-6.4 zpanel-10.1.0

I have tried to install zpanel 10.1.0 on centos 6.4 on own server machine.
The requirement was fresh clean OS installation.
Ref:Here
But it is late for me since I already installed several pacages like LAMP stack,etc..
ISSUE:
As per the instructions I downloaded the installer script,Execute.
FYI:This script installs all the dependencies for the installation.
I already have mysql installed along with LAMP stack,With
$ mysql_secure_installation
This installer script tries to access the existing mysql.It fails since it generates its own root password since it assumes this system is fresh install OS.
So I uninstalled all mysql related stuff's like mysql-server,libs.etc..But still it fails at same place.
ErrorLog:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'#'localhost' (using password: NO)'
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
While Checking mysql from console I found that mysql root password is the same that I set while Lamp stack installation despite of several re installation.
This result in application without database access.
Looking for any advice here to get this solved.
Thanks.
Sorry for long post.
I found a (dirty) way to do that from here and there
simply remove the mysql directory itself from /var/libs/mysql after uninstalling your mysql packages.
rm -fR /var/libs/mysql
then execute the installer as usual. My issue solved this way. Thank you.