Installing MySQL 5.5 on Fedora 20

If you tried installing MySQL 5.5 on Fedora 20 with "yum install mysql mysql-server", you're in for a big surprise because these packages default to MariaDB now:

[root@localhost ~]# yum install mysql mysql-server
Failed to set locale, defaulting to C
Loaded plugins: langpacks, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package mariadb.i686 1:5.5.34-2.fc20 will be installed
--> Processing Dependency: mariadb-libs(x86-32) = 1:5.5.34-2.fc20 for package: 1:mariadb-5.5.34-2.fc20.i686
---> Package mariadb-server.i686 1:5.5.34-2.fc20 will be installed
--> Running transaction check
---> Package mariadb-libs.i686 1:5.5.34-2.fc20 will be installed
--> Finished Dependency Resolution

Suppose you really want to install the MySQL community version, it's still available but under new package names community-mysql-server and community-mysql. So if you want to install these instead, run:

# yum install community-mysql-server community-mysql-libs community-mysql

To ensure it runs upon boot:
# systemctl enable mysqld

To start MySQL, run:
# systemctl start mysqld

To stop MySQL, run:
# systemctl stop mysqld

Comments

Popular Posts