mysql connection issue in Spark VM

0 votes
Hi Team,

I have tried to connect mysql in Spark Vm and getting the below error.
[edureka@localhost ~]$ mysql
bash: mysql: command not found
[edureka@localhost ~]$ pwd
/home/edureka
Dec 18, 2017 in Data Analytics by Saravana
758 views

1 answer to this question.

0 votes
Best answer

Dear Saravana,

Hope you are doing great.

We would like to inform you that MySQL is already present in Edureka VM.

Please use below commands one by one to start mysql.

sudo service mysqld restart

mysql -u root -p    (NOTE: it's a small p)

If you are  prompted to enter password after using mysql -u root -p ,then just hit enter.Please refer below screen-shot.

I hope this resolves your query.

Please feel free to revert if you need any further help.

answered Dec 18, 2017 by Sudhir
• 1,610 points

selected Dec 18, 2017 by Sudhir

Related Questions In Data Analytics

0 votes
1 answer

": cannot open the connection" Error in R

There can be two reasons for this ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 52,360 points
4,631 views
0 votes
1 answer

Error saying " Failed to connect to database: Error: Lost connection to MySQL server at 'handshake"

try this: library(RODBCext) sqlString <- "Select * from yourtable ...READ MORE

answered Nov 12, 2018 in Data Analytics by Maverick
• 10,840 points
2,584 views
0 votes
1 answer

Error saying " cannot open the connection" when trying to install a package in R

Try install.packages(“package_name”, repos="http://cr ...READ MORE

answered Nov 26, 2018 in Data Analytics by Maverick
• 10,840 points
8,549 views
+1 vote
1 answer

How to setup any database connection in R?

Here is how you set up a ...READ MORE

answered Oct 14, 2019 in Data Analytics by anonymous
• 33,030 points
1,573 views
0 votes
1 answer

mysql connection issue in Spark VM

Dear Learner, Hope you are doing well. Please go ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
549 views
0 votes
1 answer

VM with network settings in Virtual box

Dear Learner, We hope you are doing well. Please ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
1,282 views
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