How to uninstall and install mysql-server in centos?

0 votes
Hi, I am using CentOs and I dont know password of sql. I want to uninstall mysql-server and install in again. What are the steps to do this?
Dec 27, 2018 in Big Data Hadoop by digger
• 27,620 points
64 views

1 answer to this question.

0 votes

Please find below the command to uninstall MySQL.

yum remove mysql mysql-server

After this execute the following commands in order to install MySQL in your virtual machine.

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
sudo yum install mysql-server 
sudo systemctl start mysqld
sudo systemctl status mysqld
sudo mysql_secure_installation
mysql -u root -p
answered Dec 27, 2018 by Omkar
• 67,120 points

Related Questions In Big Data Hadoop

0 votes
1 answer

What command is used to install MySql in centos?

You can use this command to install ...READ MORE

answered Apr 12 in Big Data Hadoop by Gitika
• 19,720 points
57 views
0 votes
1 answer

How to install WebHCat Rest server on Centos?

Open the terminal and run the following ...READ MORE

answered Jun 3 in Big Data Hadoop by Harry
16 views
0 votes
1 answer

How to install and configure a multi-node Hadoop cluster?

I would recommend you to install Cent ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by Shubham
• 13,110 points
542 views
0 votes
10 answers
0 votes
1 answer

Update hdfs data before stroring in MySql

Yes, you can update the data before ...READ MORE

answered Jan 27 in Big Data Hadoop by Omkar
• 67,120 points
20 views
0 votes
1 answer

Using Hadoop for Data Analytics.

Yes, your approach is correct - you ...READ MORE

answered Sep 28, 2018 in Big Data Hadoop by Frankie
• 9,810 points
30 views
0 votes
1 answer

How to open MySql console in Ubuntu?

sudo service mysqld restart mysql -u <username> root ...READ MORE

answered Dec 14, 2018 in Big Data Hadoop by Omkar
• 67,120 points
68 views
0 votes
1 answer

Facing the below error while installing mysql in VM

We would like to say that the ...READ MORE

answered Dec 21, 2018 in Big Data Hadoop by Omkar
• 67,120 points
47 views
0 votes
1 answer

How to read HDFS and local files with the same code in Java?

You can try something like this: ​ ...READ MORE

answered Nov 22, 2018 in Big Data Hadoop by Omkar
• 67,120 points
196 views
0 votes
1 answer

How to find the running namenodes and secondary name nodes in hadoop?

Name nodes: hdfs getconf -namenodes Secondary name nodes: hdfs getconf ...READ MORE

answered Nov 26, 2018 in Big Data Hadoop by Omkar
• 67,120 points
47 views