Debian Lenny - Installing MySQL

本文介绍如何在Debian Lenny上使用'aptitude'包管理器简单快速地安装MySQL数据库服务器。文中详细说明了安装过程,包括设置root密码及如何禁用InnoDB以节省内存。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Installing MySQL on Debian Lenny is very simple using the 'aptitude' package manager.

This article will go through the install process and you will have a database server up and running in no time.


MySQL install

To begin with, a simple MySQL install:

sudo aptitude install mysql-server mysql-client libmysqlclient15-dev

Note that we have installed the development libs and headers with the 'libmysqlclient15-dev' package - you can leave that out but I have found that they are useful in many situations.

MySQL Password

During the installation of MySQL, you will be presented with the option to install a password:

Setting the MySQL Root password is a recommended step in setting up your Slice. However, it is, of course, up to you.

Should you decide that protecting your production database is a good idea, then simply enter your chosen password as directed.

Unlike previous Debian releases, Lenny asks for a confirmation of the password (which is a good thing!):

InnoDB

if you are not going to use InnoDB with your MySQL databases, then it is a good idea to turn it off right at the start. It uses a lot of memory and, if not going to be used, this is wasted memory.

Open the main Mysql config file:

sudo nano /etc/mysql/my.cnf

Search my.cnf for the heading:

# * InnoDB

Then, to turn off InnoDB, simply uncomment (remove the #) on this line:

skip-innodb

Done. It really is as simple as that.

原文地址:http://articles.slicehost.com/2009/4/7/debian-lenny-installing-mysql

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值