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 83 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 by Gitika
• 25,420 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 5, 2018 in Big Data Hadoop by Omkar
• 68,160 points
292 views
0 votes
1 answer
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
• 13,350 points
340 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
• 10,760 points
718 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
• 10,760 points
2,356 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,280 points
2,094 views