fedora安装mysql详细步骤

[root@li ~]# yum install mysql mysql-server
已加载插件:langpacks, presto, refresh-packagekit
Adding zh_CN to language list
设置安装进程
包 mysql-5.1.58-1.fc14.i686 已安装并且是最新版本
解决依赖关系
--> 执行事务检查
---> 软件包 mysql-server.i686 0:5.1.58-1.fc14 将被 安装
--> 处理依赖关系 perl(DBI),它被软件包 mysql-server-5.1.58-1.fc14.i686 需要
--> 处理依赖关系 perl-DBD-MySQL,它被软件包 mysql-server-5.1.58-1.fc14.i686 需要
--> 处理依赖关系 perl-DBI,它被软件包 mysql-server-5.1.58-1.fc14.i686 需要
--> 执行事务检查
---> 软件包 perl-DBD-MySQL.i686 0:4.017-1.fc14 将被 安装
---> 软件包 perl-DBI.i686 0:1.613-1.fc14 将被 安装
--> 完成依赖关系计算

依赖关系解决

================================================================================
 软件包            架构    版本             仓库                           大小
================================================================================
正在安装:
 mysql-server      i686    5.1.58-1.fc14    updates-ftp.sjtu.edu.cn       8.3 M
为依赖而安装:
 perl-DBD-MySQL    i686    4.017-1.fc14     Everything-ftp.sjtu.edu.cn    137 k
 perl-DBI          i686    1.613-1.fc14     Everything-ftp.sjtu.edu.cn    775 k

事务概要
================================================================================
Install       3 Package(s)

总下载量:9.2 M
Installed size: 25 M
确定吗?[y/N]:y
下载软件包:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 9.2 M
(1/3): mysql-server-5.1.58-1.fc14.i686.rpm               | 8.3 MB     00:40     
(2/3): perl-DBD-MySQL-4.017-1.fc14.i686.rpm              | 137 kB     00:00     
(3/3): perl-DBI-1.613-1.fc14.i686.rpm                    | 775 kB     00:04     
--------------------------------------------------------------------------------
总计                                            207 kB/s | 9.2 MB     00:45     
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
  正在安装       : perl-DBI-1.613-1.fc14.i686                               1/3
  正在安装       : perl-DBD-MySQL-4.017-1.fc14.i686                         2/3
  正在安装       : mysql-server-5.1.58-1.fc14.i686                          3/3

已安装:
  mysql-server.i686 0:5.1.58-1.fc14                                             

作为依赖被安装:
  perl-DBD-MySQL.i686 0:4.017-1.fc14        perl-DBI.i686 0:1.613-1.fc14       

完毕!
[root@li ~]# service mysqld start
初始化 MySQL 数据库: WARNING: The host 'li' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h li password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

                                                           [确定]
正在启动 mysqld:                                          [确定]
[root@li ~]# mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.58 Source distribution

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| test               |
+--------------------+
3 rows in set (0.00 sec)

mysql>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值