fedora13 安装 mysql
2011-04-15 15:49
211 查看
直接安装下载的rpm包有的时候会因为缺少mysql的依赖库而无法安装成功
可通过执行命令来实现安装操作,如下命令是安装mysql客户端,服务器和C语言开发环境:
sudo yum install mysql mysql-server mysql-devel
参考:
[root@lee1 ~]# sudo yum install mysql mysql-server mysql-devel
已加载插件:presto, refresh-packagekit
设置安装进程
包 mysql-5.1.55-1.fc13.i686 已安装并且是最新版本
解决依赖关系
--> 执行事务检查
---> 软件包 mysql-devel.i686 0:5.1.55-1.fc13 将被 升级
---> 软件包 mysql-server.i686 0:5.1.55-1.fc13 将被 升级
--> 处理依赖关系 perl(DBI),它被软件包 mysql-server-5.1.55-1.fc13.i686 需要
--> 处理依赖关系 perl-DBD-MySQL,它被软件包 mysql-server-5.1.55-1.fc13.i686 需要
--> 处理依赖关系 perl-DBI,它被软件包 mysql-server-5.1.55-1.fc13.i686 需要
--> 执行事务检查
---> 软件包 perl-DBD-MySQL.i686 0:4.017-1.fc13 将被 升级
---> 软件包 perl-DBI.i686 0:1.609-4.fc13 将被 升级
--> 完成依赖关系计算
依赖关系解决
================================================================================
软件包 架构 版本 仓库 大小
================================================================================
正在安装:
mysql-devel i686 5.1.55-1.fc13 updates 128 k
mysql-server i686 5.1.55-1.fc13 updates 8.3 M
为依赖而安装:
perl-DBD-MySQL i686 4.017-1.fc13 updates 137 k
perl-DBI i686 1.609-4.fc13 fedora 707 k
在安装的过程中会下载mysql的依赖库,此时要确保机器能够连上互联网。
安装完后 重启mysql 重启命令如下:
service mysqld restart
参考:
[root@lee1 ~]# service mysqld restart
停止 mysqld: [确定]
初始化 MySQL 数据库: 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 lee1 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: [确定]
重启成功后就可以直接输入mysql进入mysql的数据库了。
参考:
[root@lee1 ~]# mysql
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 2
Server version: 5.1.55 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>
可通过执行命令来实现安装操作,如下命令是安装mysql客户端,服务器和C语言开发环境:
sudo yum install mysql mysql-server mysql-devel
参考:
[root@lee1 ~]# sudo yum install mysql mysql-server mysql-devel
已加载插件:presto, refresh-packagekit
设置安装进程
包 mysql-5.1.55-1.fc13.i686 已安装并且是最新版本
解决依赖关系
--> 执行事务检查
---> 软件包 mysql-devel.i686 0:5.1.55-1.fc13 将被 升级
---> 软件包 mysql-server.i686 0:5.1.55-1.fc13 将被 升级
--> 处理依赖关系 perl(DBI),它被软件包 mysql-server-5.1.55-1.fc13.i686 需要
--> 处理依赖关系 perl-DBD-MySQL,它被软件包 mysql-server-5.1.55-1.fc13.i686 需要
--> 处理依赖关系 perl-DBI,它被软件包 mysql-server-5.1.55-1.fc13.i686 需要
--> 执行事务检查
---> 软件包 perl-DBD-MySQL.i686 0:4.017-1.fc13 将被 升级
---> 软件包 perl-DBI.i686 0:1.609-4.fc13 将被 升级
--> 完成依赖关系计算
依赖关系解决
================================================================================
软件包 架构 版本 仓库 大小
================================================================================
正在安装:
mysql-devel i686 5.1.55-1.fc13 updates 128 k
mysql-server i686 5.1.55-1.fc13 updates 8.3 M
为依赖而安装:
perl-DBD-MySQL i686 4.017-1.fc13 updates 137 k
perl-DBI i686 1.609-4.fc13 fedora 707 k
在安装的过程中会下载mysql的依赖库,此时要确保机器能够连上互联网。
安装完后 重启mysql 重启命令如下:
service mysqld restart
参考:
[root@lee1 ~]# service mysqld restart
停止 mysqld: [确定]
初始化 MySQL 数据库: 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 lee1 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: [确定]
重启成功后就可以直接输入mysql进入mysql的数据库了。
参考:
[root@lee1 ~]# mysql
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 2
Server version: 5.1.55 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>
相关文章推荐
- fedora 13 mysql安装记录
- Fedora13 U盘启动+硬盘安装
- fedora 16 yum 安装mysql后怎样启动,以及添加为系统服务
- Fedora 16 下安装mysql 出现Unit mysql.service failed to load 等一些问题的总结
- Fedora 13 安装 php gd 库
- ZZ:Fedora下用Yum安装Apache_PHP+MySQL环境
- Fedora 19安装LAMP(Linux+Apache+Mysql+Perl/PHP/Python)
- fedora13安装oracle 11G问题
- Fedora 8平台Mysql 5的安装
- Fedora 10下mysql的安装和配置
- fedora 16 yum安装mysql后怎样启动,以及添加为系统服务
- fedora16下安装mysql的问题
- Fedora 13,14,15安装LAMP(Linux+Apache2+Mysql+PHP)
- Fedora 19(64位)安装配置lamp(linux下apache+mysql+php)
- VMware 7.1 Fedora13安装VMwareTools
- Fedora 16 安装mysql
- rhel、centos、fedora使用yum安装mysql community server
- Fedora14下MySQL的安装配置
- fedora16安装mysql
- 1分钟制作fedora启动U盘,成功安装fedora13