您的位置:首页 > 数据库 > MariaDB

fedora23下安装mariadb(原mysql)

2016-05-08 00:00 344 查看
摘要: 整理mysql-server安装过程

[
guxg
@localhost ~]$ su - root

密码:

[
root
@localhost ~]# dnf install mysql-server

文件0:12:43上一次的元数据过期检查在Sun May 8 10:11:41 2016之前进行。

依赖关系解决。

========================================================================================================

软件包 架构 版本 仓库 大小

========================================================================================================

安装:

mariadb x86_64 1:10.0.23-1.fc23 updates 6.3 M

mariadb-common x86_64 1:10.0.23-1.fc23 updates 74 k

mariadb-config x86_64 1:10.0.23-1.fc23 updates 25 k

mariadb-errmsg x86_64 1:10.0.23-1.fc23 updates 199 k

mariadb-libs x86_64 1:10.0.23-1.fc23 updates 637 k

mariadb-server x86_64 1:10.0.23-1.fc23 updates 18 M

perl-DBD-MySQL x86_64 4.033-1.fc23 updates 153 k

perl-DBI x86_64 1.633-6.fc23 fedora 727 k

perl-Math-BigInt noarch 1.9997-349.fc23 fedora 188 k

事务概要

========================================================================================================

安装 9 Packages

总下载:27 M

安装大小:132 M

确定吗?[y/N]:y

下载软件包:

(1/9): mariadb-common-10.0.23-1.fc23.x86_64.rpm 186 kB/s | 74 kB 00:00

(2/9): mariadb-errmsg-10.0.23-1.fc23.x86_64.rpm 468 kB/s | 199 kB 00:00

(3/9): perl-Math-BigInt-1.9997-349.fc23.noarch.rpm 187 kB/s | 188 kB 00:01

(4/9): mariadb-config-10.0.23-1.fc23.x86_64.rpm 147 kB/s | 25 kB 00:00

(5/9): perl-DBD-MySQL-4.033-1.fc23.x86_64.rpm 297 kB/s | 153 kB 00:00

(6/9): perl-DBI-1.633-6.fc23.x86_64.rpm 247 kB/s | 727 kB 00:02

(7/9): mariadb-libs-10.0.23-1.fc23.x86_64.rpm 394 kB/s | 637 kB 00:01

(8/9): mariadb-server-10.0.23-1.fc23.x86_64.rpm 1.5 MB/s | 18 MB 00:11

(9/9): mariadb-10.0.23-1.fc23.x86_64.rpm 720 kB/s | 6.3 MB 00:08

--------------------------------------------------------------------------------------------------------

总计 1.3 MB/s | 27 MB 00:20

运行事务检查

事务检查成功。

运行事务测试

事务测试成功。

运行事务

安装 : mariadb-config-1:10.0.23-1.fc23.x86_64 1/9

安装 : mariadb-common-1:10.0.23-1.fc23.x86_64 2/9

安装 : mariadb-errmsg-1:10.0.23-1.fc23.x86_64 3/9

安装 : mariadb-libs-1:10.0.23-1.fc23.x86_64 4/9

安装 : mariadb-1:10.0.23-1.fc23.x86_64 5/9

安装 : perl-Math-BigInt-1.9997-349.fc23.noarch 6/9

安装 : perl-DBI-1.633-6.fc23.x86_64 7/9

安装 : perl-DBD-MySQL-4.033-1.fc23.x86_64 8/9

安装 : mariadb-server-1:10.0.23-1.fc23.x86_64 9/9

验证 : mariadb-server-1:10.0.23-1.fc23.x86_64 1/9

验证 : mariadb-common-1:10.0.23-1.fc23.x86_64 2/9

验证 : mariadb-errmsg-1:10.0.23-1.fc23.x86_64 3/9

验证 : perl-DBI-1.633-6.fc23.x86_64 4/9

验证 : perl-Math-BigInt-1.9997-349.fc23.noarch 5/9

验证 : mariadb-config-1:10.0.23-1.fc23.x86_64 6/9

验证 : perl-DBD-MySQL-4.033-1.fc23.x86_64 7/9

验证 : mariadb-libs-1:10.0.23-1.fc23.x86_64 8/9

验证 : mariadb-1:10.0.23-1.fc23.x86_64 9/9

已安装:

mariadb.x86_64 1:10.0.23-1.fc23 mariadb-common.x86_64 1:10.0.23-1.fc23

mariadb-config.x86_64 1:10.0.23-1.fc23 mariadb-errmsg.x86_64 1:10.0.23-1.fc23

mariadb-libs.x86_64 1:10.0.23-1.fc23 mariadb-server.x86_64 1:10.0.23-1.fc23

perl-DBD-MySQL.x86_64 4.033-1.fc23 perl-DBI.x86_64 1.633-6.fc23

perl-Math-BigInt.noarch 1.9997-349.fc23

完毕!

[
root@localhost ~]# systemctl start mariadb.service

[
root@localhost ~]# systemctl enable mariadb.service

Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.

[
root@localhost ~]# mysql_secure_installation

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB

SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current

password for the root user. If you've just installed MariaDB, and

you haven't set the root password yet, the password will be blank,

so you should just press enter here.

Enter current password for root (enter for none): (这里直接enter)

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Enter current password for root (enter for none):

OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB

root user without the proper authorisation.

Set root password? [Y/n] y

New password:

Re-enter new password:

Password updated successfully!

Reloading privilege tables..

... Success!

By default, a MariaDB installation has an anonymous user, allowing anyone

to log into MariaDB without having to have a user account created for

them. This is intended only for testing, and to make the installation

go a bit smoother. You should remove them before moving into a

production environment.

Remove anonymous users? [Y/n] y

... Success!

Normally, root should only be allowed to connect from 'localhost'. This

ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y

... Success!

By default, MariaDB comes with a database named 'test' that anyone can

access. This is also intended only for testing, and should be removed

before moving into a production environment.

Remove test database and access to it? [Y/n] y

- Dropping test database...

... Success!

- Removing privileges on test database...

... Success!

Reloading the privilege tables will ensure that all changes made so far

will take effect immediately.

Reload privilege tables now? [Y/n] y

... Success!

Cleaning up...

All done! If you've completed all of the above steps, your MariaDB

installation should now be secure.

Thanks for using MariaDB!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  fedora23安装mysql