视频1 视频21 视频41 视频61 视频文章1 视频文章21 视频文章41 视频文章61 推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37 推荐39 推荐41 推荐43 推荐45 推荐47 推荐49 关键词1 关键词101 关键词201 关键词301 关键词401 关键词501 关键词601 关键词701 关键词801 关键词901 关键词1001 关键词1101 关键词1201 关键词1301 关键词1401 关键词1501 关键词1601 关键词1701 关键词1801 关键词1901 视频扩展1 视频扩展6 视频扩展11 视频扩展16 文章1 文章201 文章401 文章601 文章801 文章1001 资讯1 资讯501 资讯1001 资讯1501 标签1 标签501 标签1001 关键词1 关键词501 关键词1001 关键词1501 专题2001
InstallMySQLServerCommunityEditiononFedora20_MySQL
2020-11-09 20:03:44 责编:小采
文档


Fedora

Today we are going to go through the process of installing MySQL Server Community Edition on Fedora 20. You could of course simply use MariaDB, but this will focus on the Community Edition.

Install the MySQL Repository

We will need to install the MySQL Community Repository, the MySQL project hosts an RPM file with the repository. First lets look at the repositories that I have already.

# yum repolistLoaded plugins: langpacks, refresh-packagekitrepo id repo name statusadobe-flashplayer Adobe Flash Player - x86_ 2fedora/20/x86_ Fedora 20 - x86_ 38,597google-chrome Google Chrome - x86_ 3oracle-virtualbox/20/x86_ Oracle VirtualBox - x86_ 10rpmfusion-free/20/x86_ RPM Fusion for Fedora 20 - Free 468rpmfusion-free-updates/20/x86_ RPM Fusion for Fedora 20 - Free - Updates 4rpmfusion-nonfree/20/x86_ RPM Fusion for Fedora 20 - Nonfree 203rpmfusion-nonfree-updates/20/x86_ RPM Fusion for Fedora 20 - Nonfree - Updates 299updates/20/x86_ Fedora 20 - x86_ - Updates 17,616repolist: 57,662

Now lets install the release file. Keep in mind, you can do a separate wget or curl to download the file, or you can use the command as I have. As of the time of this writing there are also repositories for Fedora 18 and 19 and Enterprise Linux 5, 6 and 7 (beta). Though the only procedures I have validated are the Fedora 20, they should all work the same.

# yum localinstall http://dev.mysql.com/get/mysql-community-release-fc20-5.noarch.rpm

Now lets compare our new repositories to our old and we will see it has added 3 repositories, mysql56-community, mysql-tools-community and mysql-connectors-community

# yum repolistLoaded plugins: langpacks, refresh-packagekitrepo id repo name statusadobe-flashplayer Adobe Flash Player - x86_ 2fedora/20/x86_ Fedora 20 - x86_ 38,597google-chrome Google Chrome - x86_ 3mysql-connectors-community/20/x86_ MySQL Connectors Community 14mysql-tools-community/20/x86_ MySQL Tools Community 8mysql56-community/20/x86_ MySQL 5.6 Community Server 57oracle-virtualbox/20/x86_ Oracle VirtualBox - x86_ 10rpmfusion-free/20/x86_ RPM Fusion for Fedora 20 - Free 468rpmfusion-free-updates/20/x86_ RPM Fusion for Fedora 20 - Free - Updates 4rpmfusion-nonfree/20/x86_ RPM Fusion for Fedora 20 - Nonfree 203rpmfusion-nonfree-updates/20/x86_ RPM Fusion for Fedora 20 - Nonfree - Updates 299updates/20/x86_ Fedora 20 - x86_ - Updates 17,616repolist: 57,741

Install MySQL Server Community

Now that we have the repository we can use yum list to determine what version is available.

# yum list mysql-community-serverLoaded plugins: langpacks, refresh-packagekitAvailable Packagesmysql-community-server.x86_ 5.6.19-1.fc20 mysql56-community

Then we can do a yum install to actually perform the install.

# yum install mysql-community-server

Enable the MySQL Server Software

Now we will set the mysqld service to start on reboot.

# systemctl enable mysqldln -s '/usr/lib/systemd/system/mysqld.service' '/etc/systemd/system/mysql.service'ln -s '/usr/lib/systemd/system/mysqld.service' '/etc/systemd/system/multi-user.target.wants/mysqld.service'

Now manually start the mysqld service. For a development environment, I also added bind-address=127.0.0.1 to /etc/my.cnf under the [mysqld] section.

# service mysqld startRedirecting to /bin/systemctl start mysqld.service

Install MySQL Workbench Community

Now that we have the repository enabled we can also install additional software such as MySQL Workbench.

# yum install mysql-workbench

下载本文
显示全文
专题