Linux MySQL5.5的安装
[root@server1 src]# cd /opt/ipnms/src
[root@server1 src]# tar zxvf cmake-2.8.4.tar.gz
[root@server1 src]# cd cmake-2.8.4
[root@server1 cmake-2.8.4]#./bootstrap
[root@server1 cmake-2.8.4]#gmake
[root@server1 cmake-2.8.4]#gmake install
[root@server1 cmake-2.8.4]#cd ../
用于自动生成语法分析器程序
[root@server1 src]# tar zxvf bison-2.5.tar.gz
[root@server1 src]# cd bison-2.5
[root@server1 bison-2.5]#./configure
[root@server1 bison-2.5]#make
[root@server1 bison-2.5]#make install
[root@server1 bison-2.5]#cd ../
[root@server1 src]#unzip ncurses-devel.zip
[root@server1 src]#rpm -ivh ncurses-devel-5.7-3.20090208.el6.x86_64.rpm
[root@server1 src]#groupadd mysql
[root@server1 src]#useradd -g mysql mysql
[root@server1 src]#tar xvf mysql-5.5.14.tar.gz
[root@server1 src]#cd mysql-5.5.14/
[root@server1 mysql-5.5.14]#cmake . (后面有个.)
[root@server1 mysql-5.5.14]#make
[root@server1 mysql-5.5.14]#make install
[root@server1 mysql-5.5.14]#cd /usr/local/mysql/
[root@server1 mysql]# chown -R mysql .
[root@server1 mysql]# chgrp -R mysql .
mysql_install_db 以缺省权限创建MySQL授权表。这通常仅被执行一次。就是在系统上第一次安装MySQL时。
[root@server1 mysql]#scripts/mysql_install_db --user=mysql
安全启动MySQL(默认密码为空)
[root@server1 mysql]#./bin/mysqld_safe --user=mysql&
MySQL启动成功后,root默认没有密码,我们需要设置root密码。
设置之前,我们需要先设置PATH,可以直接调用mysql修改/etc/profile文件。
[root@localhost mysql]#vi /etc/profile
添加如下代码:
PATH=/usr/local/mysql/bin:$PATH
export PATH
关闭文件,运行下面的命令,让配置立即生效
[root@localhost mysql]# source /etc/profile
连接本机MySQL
[root@localhost mysql]#mysql –u root –p
提示输入password,默认为空,按Enter即可
断开连接
mysql>exit;
为root账户设置密码
[root@localhost mysql]# mysqladmin -u root password 2wE#RFT
Enter Password: 2wE#RFT
拷贝mysql配置文件
[root@localhost mysql]# cp support-files/my-medium.cnf /etc/mysql.cnf
启动时指定mysql的配置文件。
[root@localhost mysql]#/usr/local/mysql/bin/mysqld_safe --defaults-file=/etc/mysql.cnf --user=mysql&
[root@server1 init.d]# vi /etc/rc.d/rc.local结尾添加如下内容:
/usr/local/mysql/bin/mysqld_safe --defaults-file=/etc/mysql.cnf --user=mysql&
Linux MySQL5.5的安装的更多相关文章
- Linux MySql5.6.38安装过程
1.下载mysql安装包mysql-5.6.38-linux-glibc2.12-x86_64.tar.gz 2.用xftp工具将其上传到Linux服务器上的soft文件夹,没有的话先创建 [root ...
- linux mysql-5.6.26 安装
下载地址 ftp://mirror.switch.ch/mirror/mysql/Downloads/MySQL-5.6/mysql-5.6.26-linux-glibc2.5-x86_64.tar. ...
- Linux mysql-5.7.17安装 教程
1.下载安装文件 #mkdir /data #mkdir /data/software #cd /data/software #wget http://dev.mysql.com/get/Downl ...
- linux mysql-5.7.26 安装全记录
买了个阿里云,自己折腾一下. 时间:2019年7月17日13:40:18 1.下载 wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7. ...
- LINUX Mysql5.6.19 安装
1.需要扩展安装 yum -y install make bison gcc-c++ cmake ncurses ncurses-devel 2.下载Mysql5.6.19 wget ftp://mi ...
- linux MySQL5.7 rpm安装(转)
删除旧包: # rpm -qa | grep -i mysql # rpm -ev mysql-libs-* --nodeps 安装rpm包: # rpm -ivh mysql-community-c ...
- linux 下 mysql-5.5.8 安装
安装环境:Linux服务器CentOS 5.5 安装版本:mysql-5.5.8.tar.gz 1.安装 cmake 编译器. 1).下载cmake #cd /usr/local/src #wget ...
- MySQL5.7.20 二进制包 在Linux系统中的 安装和配置
01, 下载安装包 => https://dev.mysql.com/downloads/mysql/ 02, 上传到linux系统, 笔者这里安装在 root 目录下, 常见安装在 var/ ...
- linux下mysql-5.5.15安装详细步骤
linux下mysql-5.5.15安装详细步骤 注:该文档中用到的目录路径以及一些实际的值都是作为例子来用,具体的目录路径以各自安装时的环境为准 mysql运行时需要一个启动目录.一个安装目录和一个 ...
随机推荐
- EventListener中的handleEvent
在研究代码时发现类似这样一段代码: function TEST() {} TEST.prototype = { init:function() { window.addEventListener('m ...
- vsftpd 虚拟用户限定在虚拟用户目录
1.安装vsftpd yum -y install pam pam-devel db4 db4-tcl vsftpd 2.更名默认配置文件,以便恢复 cp /etc/vsftpd/vsftpd.con ...
- 【Selenium+Python Webdriver】报错之:TypeError: user_login() missing 1 required positional argument: 'self'
先贴一下源码: base.py文件如下: from selenium import webdriver class Page(object): ''' 页面基础类,用于所有页面的继承 ''' rb_u ...
- NUTCH2.3 hadoop2.7.1 hbase1.0.1.1 solr5.2.1部署(二)
Precondition: hadoop 2.7.1 hbase 1.0.1.1 / hbase 0.98.13 192.168.1.106 ->master 192.168.1.105 ...
- VMware虚拟机下安装RedHat Linux 9.0
从这一篇文章开始我和大家一起学习Linux系统.不管是什么样的系统,必须安装上才能谈使用对吧. Linux版本 安装Linux之前需要了解一下Linux系统的安装版本. Linux的版本分为内核版本和 ...
- 10分钟看懂, Java NIO 底层原理
目录 写在前面 1.1. Java IO读写原理 1.1.1. 内核缓冲与进程缓冲区 1.1.2. java IO读写的底层流程 1.2. 四种主要的IO模型 1.3. 同步阻塞IO(Blocking ...
- Tomcat学习笔记【5】--- 项目部署详解
本文主要讲在Tomcat中部署项目的几种方式:静态部署.动态部署. 一 静态部署 静态部署项目有好几种方式,比较典型的有如下4种: 1.1 方式一:将Web项目放到webApps目录下 直接将web项 ...
- 利用socket.io实现多人聊天室(基于Nodejs)
socket.io简单介绍 在Html5中存在着这种一个新特性.引入了websocket,关于websocket的内部实现原理能够看这篇文章.这篇文章讲述了websocket无到有,依据协议,分析数据 ...
- POJ 2442 Sequence【堆】
题目链接:http://poj.org/problem?id=2442 题目大意:给出一个m*n的矩阵,从每一行中取出一个数相加.能得到n^m个不同的结果.要求输出当中前n项. 建立一个以n元数组为底 ...
- LeetCode:将有序数组转换为二叉搜索树【108】
LeetCode:将有序数组转换为二叉搜索树[108] 题目描述 将一个按照升序排列的有序数组,转换为一棵高度平衡二叉搜索树. 本题中,一个高度平衡二叉树是指一个二叉树每个节点 的左右两个子树的高度差 ...