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
977 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,570 points

selected Dec 18, 2017 by Sudhir

Related Questions In Data Analytics

0 votes
0 answers

mysql connection issue in Spark VM

Hi Abhi, I am getting the following error: I ...READ MORE

Dec 18, 2017 in Data Analytics by Learner
710 views
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,350 points
5,077 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,956 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
9,164 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,570 points
1,592 views
0 votes
1 answer

Shut down the VM and restarted

Dear Raghu, Please let us know are you ...READ MORE

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