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 17, 2017 in Data Analytics by Saravana
97 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
• 45,910 points
646 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,040 points
550 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://cran.us.r-p ...READ MORE

answered Nov 26, 2018 in Data Analytics by Maverick
• 10,040 points
476 views
0 votes
1 answer

How to setup any database connection in R?

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

answered Oct 13 in Data Analytics by anonymous
• 32,260 points
23 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
84 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
117 views