error: Access denied for user 'sample'@'localhost'.

0 votes

The error came up when I used the following command:

mysql -u sample -p

Enter password section I entered: " the password I used at the time of installation". After pressing enter I am getting this error.

Apr 15 in Big Data Hadoop by pavitra

edited Apr 15 32 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

This kind of error occurs when we use a faulty username in the command. You should provide the same username your MySql supports. You can use this command and check, I hope it will work:

mysql -u root -p

 

One note point: If you try to change the username, it may take another command to configure it. So better if your user name is root, do not change if you don't want to face complications. 

answered Apr 15 by Gitika
• 8,380 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Start-dfs.sh daemons not starting. localhost: mkdir: cannot create directory `/user': Permission denied

Make the following changes to the hadoop-env.sh ...READ MORE

answered Dec 5, 2018 in Big Data Hadoop by Omkar
• 65,850 points
75 views
0 votes
1 answer

Java MapReduce error saying No FileSystem for scheme:hdfs

The problem is with the dependencies. The ...READ MORE

answered May 9, 2018 in Big Data Hadoop by Shubham
• 12,270 points
193 views
0 votes
1 answer

Hadoop: localhost: Error: JAVA_HOME is not set.

Seems like PATH problem in hadoop-env.sh file. Try ...READ MORE

answered Nov 6, 2018 in Big Data Hadoop by Omkar
• 65,850 points
177 views
0 votes
1 answer

Hadoop hdfs "permission denied" error when I try to make new directory

This is because you dont have enough ...READ MORE

answered Nov 22, 2018 in Big Data Hadoop by Omkar
• 65,850 points
487 views
0 votes
1 answer
0 votes
1 answer

Is there any way to load data from MySql to HDFS?

The generic command i.e used to import ...READ MORE

answered Apr 10, 2018 in Big Data Hadoop by nitinrawat895
• 9,070 points
293 views
0 votes
1 answer

How to move data from Oracle database to Hadoop?

Yes, you heard it correctly. Apache Sqoop is ...READ MORE

answered Apr 11, 2018 in Big Data Hadoop by nitinrawat895
• 9,070 points
1,164 views
+1 vote
2 answers

Hadoop 3 compatibility with older versions of Hive, Pig, Sqoop and Spark

Hadoop 3 is not widely used in ...READ MORE

answered Apr 20, 2018 in Apache Spark by kurt_cobain
• 9,260 points
1,202 views
0 votes
1 answer

Which MySql command will generate all the list of command for MySql prompt?

The command is very simple, you have ...READ MORE

answered Apr 15 in Big Data Hadoop by Gitika
• 8,380 points
38 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.