快精灵印艺坊 您身边的文印专家
广州名片 深圳名片 会员卡 贵宾卡 印刷 设计教程
产品展示 在线订购 会员中心 产品模板 设计指南 在线编辑
 首页 名片设计   CorelDRAW   Illustrator   AuotoCAD   Painter   其他软件   Photoshop   Fireworks   Flash  

 » 彩色名片
 » PVC卡
 » 彩色磁性卡
 » 彩页/画册
 » 个性印务
 » 彩色不干胶
 » 明信片
   » 明信片
   » 彩色书签
   » 门挂
 » 其他产品与服务
   » 创业锦囊
   » 办公用品
     » 信封、信纸
     » 便签纸、斜面纸砖
     » 无碳复印纸
   » 海报
   » 大篇幅印刷
     » KT板
     » 海报
     » 横幅

MYSQL FOR LINUX安装详解

MySQL Installation Using a Source Distribution
安装源代码版本的MySQL

shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql
shell> make
shell> make install
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> cd /usr/local/mysql
shell> bin/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql var
shell> chgrp -R mysql .
shell> bin/mysqld_safe --user=mysql &

并作出解释:
Add a login user and group for `mysqld\\\' to run as:为‘mysqld’增添一个登陆用户和组

shell> groupadd mysql
shell> useradd -g mysql mysql

Configure the release and compile everything:配置和编译

shell> ./configure --prefix=/usr/local/mysql
--prefix后面指示了默认安装路径
shell> make
假如还想知道更具体的configure命令,请查阅manual for configure

If you want to set up an option file, use one of those present in
the `support-files\\\' directory as a template. For example:假如你想安装选项文件,使用当前存在的‘support-files’ 文件夹下的作为模板,例如:

shell> cp support-files/my-medium.cnf /etc/my.cnf

If you haven\\\'t installed MySQL before, you must create the MySQL
grant tables:假如你以前没有安装过MySQL,你必须创建一个MySQL准许的表

shell> bin/mysql_install_db --user=mysql

Change the ownership of program binaries to `root\\\' and ownership
of the data directory to the user that you will run `mysqld\\\' as.
Assuming that you are located in the installation directory
(`/usr/local/mysql\\\'), the commands look like this:将程序的所有权限给‘root’ ,并且把数据目录的所有权给可以运行‘mysqld’的用户。假设MySQL的安装目录是(‘/usr/local/mysql’),命令如下所示:

shell> chown -R root .
shell> chown -R mysql var
shell> chgrp -R mysql .

The first command changes the owner attribute of the files to the `root\\\' user. 第一行命令把文件拥有权给‘root’。The second changes the owner attribute of the data directory to the `mysql\\\' user. 第二行把数据目录拥护权给‘mysql’用户。The third changes the group attribute to the `mysql\\\' group.第三行把组的权限给\\\'mysql\\\'组。

After everything has been installed, you should initialize and test your distribution using this command:万事具备后,你就可以按照下面的命令测试并运行你的MySQL了:

shell> /usr/local/mysql/bin/mysqld_safe --user=mysql &
返回类别: 教程
上一教程: 计算机端口介绍[具体列表]
下一教程: WINDOWS 2000 常见进程表

您可以阅读与"MYSQL FOR LINUX安装详解"相关的教程:
· LINUX关机命令详解
· LINUX 系统治理命令中文详解[3]
· LINUX系统中网络配置详解[8]
· LINUX 系统治理命令中文详解[2]
· 在LINUX下安装显卡驱动程序
    微笑服务 优质保证 索取样品