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, 2019 in Big Data Hadoop by pavitra

edited Apr 15, 2019 1,911 views

1 answer to this question.

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, 2019 by Gitika
• 65,770 points

Related Questions In Big Data Hadoop

0 votes
1 answer
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 6, 2018 in Big Data Hadoop by Omkar
• 69,220 points
3,107 views
0 votes
1 answer
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
• 11,380 points
3,634 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 12, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
7,300 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,350 points
5,930 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP