Chinaunix首页 | 论坛 | 博客
  • 博客访问: 509324
  • 博文数量: 110
  • 博客积分: 3971
  • 博客等级: 中校
  • 技术积分: 1175
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-20 23:27
文章分类

全部博文(110)

文章存档

2015年(2)

2014年(1)

2013年(1)

2011年(9)

2010年(28)

2009年(12)

2008年(13)

2007年(23)

2006年(21)

我的朋友

分类: LINUX

2006-07-16 22:39:37

安装MySql
[root@linux ~]# yum -y install mysql-server ← 安装mysql-server
Setting up Install Process
Setting up repositories
dries 100% |=========================| 951 B 00:00
dag 100% |=========================| 1.1 kB 00:00
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Reducing Dag RPM Repository for Red Hat Enterprise Linux to included packages only
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for mysql-server to pack into transaction set.
mysql-server-4.1.12-3.RHE 100% |=========================| 28 kB 00:00
---> Package mysql-server.i386 0:4.1.12-3.RHEL4.1 set to be updated
--> Running transaction check
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl-DBD-MySQL to pack into transaction set.
perl-DBD-MySQL-2.9004-3.1 100% |=========================| 5.4 kB 00:00
---> Package perl-DBD-MySQL.i386 0:2.9004-3.1 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
mysql-server i386 4.1.12-3.RHEL4.1 base 6.7 M
Installing for dependencies:
perl-DBD-MySQL i386 2.9004-3.1 base 111 k

Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 6.8 M
Downloading Packages:
(1/2): mysql-server-4.1.1 100% |=========================| 6.7 MB 00:02
(2/2): perl-DBD-MySQL-2.9 100% |=========================| 111 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: perl-DBD-MySQL ######################### [1/2]
Installing: mysql-server ######################### [2/2]

Installed: mysql-server.i386 0:4.1.12-3.RHEL4.1
Dependency Installed: perl-DBD-MySQL.i386 0:2.9004-3.1
Complete!

启动MySql

[root@linux ~]# /etc/rc.d/init.d/mysqld start ← 启动MySQL

[root@linux ~]# chkconfig mysqld on 
← 设置MySQL开机自动启动

[root@linux ~]# chkconfig --list mysqld 
← 确认
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off 
← 确定2~5为on

其他

关于MySql的管理,这里采用PHPMyAdmin来进行管理。在这之前需要安装php-mysql。
[root@linux ~]# yum -y install php-mysql
 ↑ 安装php-mysql


本文引用地址:

阅读(1310) | 评论(0) | 转发(0) |
0

上一篇:FTP的架设

下一篇:防火墙

给主人留下些什么吧!~~