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运行时需要一个启动目录.一个安装目录和一个 ...
随机推荐
- 触发器 (Delete Update)
--delete触发器IF(EXISTS(SELECT * FROM sysobjects WHERE name='T_PlanQtyDelete'))DROP TRIGGER T_PlanQtyDe ...
- Mysql 5.7.18 加密连接mysql_ssl_rsa_setup
MySQL 5.7.18 下载地址: https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.18-linux-glibc2.5-x86_64. ...
- 深入Asyncio(八)异步迭代器
Async Iterators: async for 除了async def和await语法外,还有一些其它的语法,本章学习异步版的for循环与迭代器,不难理解,普通迭代器是通过__iter__和__ ...
- winform学习
1:http://www.cnblogs.com/yieryi/category/704334.html 系列文章 2:http://www.easyicon.net/iconsearch/login ...
- 【ansible】ansible部署方式以及部署包
最近研究ansible的使用,在使用pip安装的时候遇到很多奇怪的问题,为此采用了手动安装的方式,并编写了一键安装脚本. ansible要求机器必须安装python2.6以上版本,可以通过一下命令查看 ...
- 【Leetcode-easy】Remove Duplicates from Sorted Array
题目要求:删除排好序的含有重复元素的数组.返回去除重复后的数组长度,并更新原始数组.不能使用额外空间. 思路:要不额外的使用内存空间,那么只有遍历数组,count保持下一个不重复的数字,遍历过程中如果 ...
- python环境的caffe配置
基本按照这个教程来 http://blog.csdn.net/zb1165048017/article/details/52980102 步骤 安装Anaconda2,去官网上下载,注意下载对应自己p ...
- Ubuntu编译Android使用的FFmpeg
本文介绍在Ubuntu平台编译FFmpeg库,用于Android使用.前提需要配置好NDK的环境.可以参考之前的文章Android NDK环境搭建. 下载FFmpeg 在官网下载FFmpeg源码,ht ...
- HAOI 2017 游记
省选 2017年4月23日 流水账式游记,不喜勿喷. Day0: 准备出发,上午敲了一顿板子,板子敲完了就打小游戏,老师也不管了. 过程中各种奶,说什么今年一定考仙人掌啦,今年一定考字符串啦,今年一定 ...
- 【css学习整理】css基础(样式,语法,选择器)
CSS是什么? cascading 层叠样式表 sheet 样式文件 style 外观个性化 CSS语法? 声明方法: 选择器(属性: 值; 属性: 值) 选择器: 通过名称制定对哪些标签进行样式设置 ...