系统:Red Hat EL AS4
Mysql:Mysql-5.0.37.tar.gz
辅助工具:SSH Secure Shell Client
提示:#代表root用户权限
1>将Mysql-5.0.37.tar.gz通过SSH 工具 上传到Linux系统的home目录下
2>建立MySQL使用者和群组:
CODE:
#groupadd mysql
#useradd -g mysql mysql
3>解压缩Mysql-5.0.37.tar.gz源码包
CODE:
#cd /home
#tar zxvf Mysql-5.0.37.tar.gz
4>进入源码目录编译安装
CODE:
#cd /home/Mysql-5.0.37
#./configure --prefix=/usr/local/mysql --with-charset=gbk |注:配置Mysql安装路径并且支持中文
#make |注:编译
#make install |注:编译安装
5>替换/etc/my.cnf文件,进入源码包,执行命令
CODE:
#cd /home/Mysql-5.0.37
#cp support-files/my-medium.cnf /etc/my.cnf
6>完成以上操作以后进行初始化数据库,进入已经安装好的mysql目录
CODE:
#cd /usr/local/mysql
#bin/mysql_install_db --user=mysql |注:--user=mysql 初始化表并且规定用mysql用户
7>设置给mysql和root用户设定访问权限 我们先进入mysql目录
CODE:
#cd /usr/local/mysql
#chown -R root /usr/local/mysql |注:设定root能访问/usr/local/mysq
#chown -R mysql /usr/local/mysql/var |注:设定mysql用户能访问/usr/local/mysql/var
#chgrp -R mysql /usr/local/mysql |注:设定mysql组能够访问/usr/local/mysq
8>启动mysql,进入已经安装好的目录
CODE:
#cd /usr/local/mysql
#bin/mysqld_safe --user=mysql &
9>
修改mysql数据库超级用户root的缺省密码:
/usr/local/mysql/bin/mysqladmin -u root password 'mysql'
关闭mysql服务器
cd /usr/local/mysql/bin
./mysqladmin -u root -p shutdown
10>设定开机就启动mysql,进入源码目录下
# cd /home/Mysql-5.0.37
# cp support-files/mysql.server /etc/init.d/mysql
# chmod +x /etc/init.d/mysql
# chkconfig --level 345 mysql on
# service mysql restart
Shutting down MySQL. [ 确定 ]
Starting MySQL [ 确定 ]
[root@localhost mysql]#
到这里MySQL就装好了。
分享到:
相关推荐
Linux 下 MySQL 5 安装 RPM安装包安装方法: 一.先查看是否已经安装MySQL : (1)查询 [root@yourdomainname/]# rpm -qa | grep mysql (或MySQL) mysql-3.23.58-9 php-mysql-4.3.4-11 mod_auth_mysql-...
RedHat as4常用应用之mysql+freeradius+cisco路由器登陆
在RedHat_AS5.0下搭建Apache+MySQL+PHP+Tomcat+JSP平台.doc
Oracle_10g_RAC_For_Redhat_AS_4安装指南
Apache是世界排名第一的Web 服务器, 根据Netcraf所作的调查,世界上百分之五十以上...在搭建平台时,也可以直接使用RPM 包来安装,但是由于使用RPM包在一些系统上不支持,因此我们使用更通用的方法:直接从源代码来装。
word文档### 测试过很多次 ### 一般按照过程一步一步的配置 肯定是对的### 在root用户下配置的### 紧供参考
操作系统:Redhat Enterprise AS 4 已安装包:httpd2.0.4, mysql4.1,libxml2.6.16, zlib1.2.1.2,gd2.0.28, libpng1.2.7 说明:网上的各种安装说明都不是很好地说明了配置参数的来由,本文将尽可能标明每一步的必要性...
在DELL PowerEdge 6850服务器(四颗64 位Inter Xeon MP 7110N处理器 / 8GB内存)、RedHat AS4 Linux操作系统、MySQL 5.1.26、MyISAM存储引擎、key_buffer=1024M环境下实测,单表1000万条记录的数据量(这张MySQL表...
asterisk+freeradius+mysql本人亲自验证书写 基于redhat4.8 AS
用Server光盘安装好的系统,就是一个最小化的Linux内核加上常用的httpd/mysql等包,不包含Xwindows桌面等对于服务器无用的软件。 国内主要的更新源: 中科大:http://centos.ustc.edu.cn/ 适合电信和教育网 ...
基本上数据是瞬间同步,希望对大家有帮助 RedHat ES 3 update 3 MYSQL 5.0.15 MYSQL数据同步备份 A服务器: 192.168.1.2 主服务器master B服务器: 192.168.1.3 副服务器slave A服务器设置 #mysql –u root –p ...
服务器硬件要求: CPU Intel双核1.6G以上 CPU 数量 2个或更多 内存 1G或更多 (数据库服务器需要2G以上) 硬盘 73G或更多 网卡 2个 软件系统要求: OS RedHat AS 4 U6或以上 DB MySql 5.0或以上 友情提示:范文可能...
常用的windowsNT4、windows2000,、windows2003、 windows2008、Redhat9、Ubuntu、Redhat AS4/AS5等操作系统一网打尽全部完美支持。支持IIS5、IIS6、IIS7、Apache1.3、Apache2.0、Apache2.2等 Web服务软件。 ...
Chapter 4: Using Linux Commands. Part II: Using Fedora. Chapter 5: Accessing and Running Applications. Chapter 6: Publishing with Fedora. Chapter 7: Music, Video, and Images in Linux. Chapter 8: ...
Lead author Christopher Negus is the bestselling Linux author of such books as Fedora 10 and Red Hat Enterprise Linux Bible and Linux 2009 Edition Bible; he is also a member of the Red Hat Enterprise ...
You can immediately start monitoring your MySQL servers by pointing your browser to: http://<YOUR_HOST>:5555 By default, MONyog listens on port 5555. There is no default password. Of course, ...
This book will teach you how to install MariaDB as well as how to configure it. Following that, you will then be shown how to secure MariaDB. This book will also teach you common commands and will ...
MySQL快速设置授予特权 GRANT ALL ON *.* to roundcube@localhost IDENTIFIED BY 's3cure_as';或者,所有主机: GRANT ALL ON *.* to roundcube@'%' IDENTIFIED BY 's3cure_as';要求支持平台德比安的Ubuntu CentOS的...