[フレーム]
Last Updated: February 25, 2016
·
1.184K
· Chao Yang

Install mysql on Fedora

1. Install mysql packages.

$ yum info mysql
Name : mysql
Arch : x86_64
Version : 5.5.28
Release : 1.fc17
Size : 28 M
Repo : installed
From repo : updates
Summary : MySQL client programs and shared libraries
URL : http://www.mysql.com
License : GPLv2 with exceptions
Description : MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
 : client/server implementation consisting of a server daemon (mysqld)
 : and many different client programs and libraries. The base package
 : contains the standard MySQL client programs and generic MySQL files.
$ yum info mysql-server
Installed Packages
Name : mysql-server
Arch : x86_64
Version : 5.5.28
Release : 1.fc17
Size : 45 M
Repo : installed
From repo : updates
Summary : The MySQL server and related files
URL : http://www.mysql.com
License : GPLv2 with exceptions
Description : MySQL is a multi-user, multi-threaded SQL database server. MySQL is a
 : client/server implementation consisting of a server daemon (mysqld)
 : and many different client programs and libraries. This package contains
 : the MySQL server and some accompanying files and directories.
$ yum install mysql mysql-server

2. Start the mysql servers and add it to the startup.

$ systemctl start mysqld.service 
$ systemctl enable mysqld.service

3. Config with the secure install script.

$ /usr/bin/mysql_secure_installation 

Or you can use thi command for you local test env.
$ mysqladmin -u root password $passwd

4. Connect to mysql.

$ mysql -u root -p
$ mysql -h localhost -u root -p
mysql>

Now you are in, enjoy!

AltStyle によって変換されたページ (->オリジナル) /