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运行时需要一个启动目录.一个安装目录和一个 ...
随机推荐
- 可执行Jar包调用动态链接库(DLL/SO)
踩过了很多的坑,查了很多资料,在此记录一下,以SpringBoot项目为基础. Maven加入JNA依赖 <!-- JNA start --> <dependency> < ...
- MagicalRecord使用教程【转载】
原文地址:http://www.ithao123.cn/content-96403.html 下面是在xcode5.1下ARC环境中的使用教程 1. 将 MagicalRecord 文件夹拖入到工程文 ...
- delphi 解析Json格式(转自:http://blog.csdn.net/jayqiang/article/details/7066824)
SuperObject 是开源的 Delphi 的 JSON 工具包,可生成 JSON 数据以及进行 JSON 解析. unit Unit6; interface uses Windows, Mess ...
- 在hibernate3中如何利用HQL语句查询出对象中的部分数据并且返回该对象?
例如现在有一个Customer对象 public class Customer{ private Integer cid; private String cname; private Integer ...
- ASP.NET动态网站制作(8)-- JS(3)
前言:JS的第三节课,这节课主要讲函数.对象及方法. 内容: 1.九九乘法表例子: HTML代码: <!DOCTYPE html> <html xmlns="http:// ...
- 多文档自己主动文摘:Multi-Document Summarization,MDS
- Jquery datepicker的使用
1. 设定初始日期 $("#<%=txtStart.ClientID %>").datepicker("setDate", start); 2. 设 ...
- ClassNotFoundException Log
Studio 运行时异常: Error:Execution failed for task ':app:compileDebugJavaWithJavac'.> Compilation fail ...
- Mybatis之入门Helloworld程序
本篇我们来实现一个Mybatis的Helloworld级别的一个示例程序. 一.搭建基本环境 1.基本开发环境搭建,这里选择: eclipse j2ee 版本,mysql 5.1 ,jdk 1.8,m ...
- 移动端 (H5) 调试工具 -- vconsole
最近在改一个移动端项目,在手机上调试贼头疼,什么日志都看不到,分析不了bug问题. 然后我同事给我介绍了一个移动端的调试神器 -- vconsole 有了这个神器,领导再也不用担心我的工作啦!!! 0 ...