satheesh#hadoop:~$ mysql -u roop -p
Enter password:
ERROR 1045 (28000): Access denied for user 'roop'#'localhost' (using password: YES)
This is what I typed in terminal and I am getting error.Help needed!
Related
~ mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
~ sudo mysql -u root -p
Password:
Enter password:
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
Eventhough I tried sudo it's not working. What should I have to do to fix this problem?
is it possible to create a copy from another db using commant in mysql without using sql file
I tried this command
mysqldump -u username -p old_database | mysql -u username -p new_database
mysqldump: Got error: 1045: Access denied for user 'root'#'localhost' (using password: YES) when trying to connect
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
lakhendrakushwah#LAKHENDRAs-MacBook-Air ~ % sudo -s
Password:
root#LAKHENDRAs-MacBook-Air ~ # mysqldump -u root -p lakha | mysql -u root -p testDB
Enter password: Enter password:
mysqldump: Got error: 1045: Access denied for user 'root'#'localhost' (using password: YES) when trying to connect
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
root#LAKHENDRAs-MacBook-Air ~ # mysqldump -u root -p lakha | mysql -u root -p testDB
Enter password: Enter password:
mysqldump: Got error: 1045: Access denied for user 'root'#'localhost' (using password: YES) when trying to connect
madhu#cool
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
It is possible but you will have to provide the password in the same command.
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES): The error is due to password not specified in the command itself.
Give it a try!
mysqldump -u username -p'your_password' old_database | mysql -u username -p'your_password' new_database
*Note: new_database must be created first using CREATE DATABASE if not present already.
C:\xampp\mysql\bin>mysql -u root
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: NO)
C:\xampp\mysql\bin>mysql -u root -p
Enter password: ************
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
I've been facing this problem whenever I try to open mysql.
I opened xampp/phpmyadmin/config.inc.php file and changed my password.
$cfg['Servers'][$i]['password'] = '';
But when I try to open mysql using the command
mysql -u root
This still shows me the error. What should I do to fix the error?
I have accidentally did some thing in MySQL database and broke MySQL.
:~# mysql -u root
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: NO)
:~# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
tried all the possible solution but still couldn't able to login to MySQL.
I have tried reinstall the package still same error.
Seems like you haven't configured mysql completely, try:
mysql_secure_installation
I failed to run MySQL on my machine. I didn't set password for MySQL, if I am not wrong.
I have done the following series of actions, including 1) running as user, 2) running as SuperUser, 3) running without password, and 4) running with the user password.
As you can see, I failed all of them. Why is it so?
abc#ubuntu:~$ mysql
ERROR 1045 (28000): Access denied for user 'abc'#'localhost' (using password: NO)
abc#ubuntu:~$ sudo su
[sudo] password for abc:
root#ubuntu:/home/abc# mysql
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: NO)
root#ubuntu:/home/abc# mysql -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: NO)
root#ubuntu:/home/abc# mysql -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
root#ubuntu:/home/abc#
If you are not sure about your current password, set a new password:
# mysqladmin -u root password 'new-password'
then log in with your new password:
# mysql -u root –p