Home  >  Article  >  php教程  >  Install mysql5.6 in linux environment

Install mysql5.6 in linux environment

WBOY
WBOYOriginal
2016-07-06 13:31:08969browse

I found a lot of blogs on the Internet and looked dizzy at all the steps. In the end, the hard work paid off and I finally installed it. I would like to share it 1 #yum remove MySQL mysql-* //Uninstall the original version of mysql 2 #yum install -y wget //If wget 3 is not downloaded #wget http://repo.mysql.com/mysql-community-release-el6

I found a lot of blogs on the Internet and I felt dizzy looking at the various steps. In the end, the hard work paid off and I finally installed it. I would like to organize and share it here

1> #yum remove MySQL mysql-* //Uninstall the original version of mysql

2>#yum install -y wget //If wget is not downloaded

3># wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm repo rpm file

4>#rpm -ivh mysql-community-release-el6-5.noarch.rpm //Install repo rpm package

5>#yum install mysql-server mysql-community-devel //Install mysql-server

6>#/etc/init.d/mysqld start //Start mysql-serve

7># mysql -uroot -p //Enter mysql

Done! If there are any errors or problems encountered, I hope everyone will comment and discuss together


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn