此处操作,包含MySQL的客户端及服务端。

MySQL下载地址: http://dev.mysql.com/downloads/mysql/5.6.html

 MySQL-5.6.-.linux_glibc2..x86_64.rpm-bundle.tar

下载到本地,将其解压,得到如下文件:

 -rw-r--r--.      Aug  : MySQL-client-5.6.-.linux_glibc2..x86_64.rpm
-rw-r--r--. Aug : MySQL-devel-5.6.-.linux_glibc2..x86_64.rpm
-rw-r--r--. Aug : MySQL-embedded-5.6.-.linux_glibc2..x86_64.rpm
-rw-r--r--. Aug : MySQL-server-5.6.-.linux_glibc2..x86_64.rpm
-rw-r--r--. Aug : MySQL-shared-5.6.-.linux_glibc2..x86_64.rpm
-rw-r--r--. Aug : MySQL-shared-compat-5.6.-.linux_glibc2..x86_64.rpm
-rw-r--r--. Aug : MySQL-test-5.6.-.linux_glibc2..x86_64.rpm

其中,用到的部分,只有client以及server两个文件。

在安装之前,最好要执行一下检测当前系统是否安装有其他版本的MySQL,否则安装过程中会出现安装包中的插件和已经安装的插件有冲突,something confilcts with exiting 巴拉巴拉。。。。。

 rpm -qa | grep -i mysql

rpm安装程序很简单,就不多说.
安装后的程序,客户端mysql在/usr/bin下面,服务端在/usr/sbin/下面。mysql的安装脚本会被copy到/etc/init.d/目录下。最简单的事情,什么都不修改,用默认的配置,则mysql的配置项目datadir是在

此处操作,包含MySQL的客户端及服务端。

MySQL下载地址: http://dev.mysql.com/downloads/mysql/5.6.html

1 MySQL-5.6.33-1.linux_glibc2.5.x86_64.rpm-bundle.tar

下载到本地,将其解压,得到如下文件:

1 -rw-r--r--. 1 7155 31415  23514633 Aug 29 18:11 MySQL-client-5.6.33-1.linux_glibc2.5.x86_64.rpm
2 -rw-r--r--. 1 7155 31415 4593511 Aug 29 18:11 MySQL-devel-5.6.33-1.linux_glibc2.5.x86_64.rpm
3 -rw-r--r--. 1 7155 31415 117878328 Aug 29 18:11 MySQL-embedded-5.6.33-1.linux_glibc2.5.x86_64.rpm
4 -rw-r--r--. 1 7155 31415 89757099 Aug 29 18:12 MySQL-server-5.6.33-1.linux_glibc2.5.x86_64.rpm
5 -rw-r--r--. 1 7155 31415 2424746 Aug 29 18:12 MySQL-shared-5.6.33-1.linux_glibc2.5.x86_64.rpm
6 -rw-r--r--. 1 7155 31415 5181146 Aug 29 18:12 MySQL-shared-compat-5.6.33-1.linux_glibc2.5.x86_64.rpm
7 -rw-r--r--. 1 7155 31415 75564628 Aug 29 18:13 MySQL-test-5.6.33-1.linux_glibc2.5.x86_64.rpm

其中,用到的部分,只有client以及server两个文件。

在安装之前,最好要执行一下检测当前系统是否安装有其他版本的MySQL,否则安装过程中会出现安装包中的插件和已经安装的插件有冲突,something confilcts with exiting 巴拉巴拉。。。。。

1 rpm -qa | grep -i mysql

rpm安装程序很简单,就不多说.
安装后的程序,客户端mysql在/usr/bin下面,服务端在/usr/sbin/下面。mysql的安装脚本会被copy到/etc/init.d/目录下。最简单的事情,什么都不修改,用默认的配置,则mysql的配置项目basedir是在/var/lib/mysql下面。

现在,需要注意了,MySQL的datadir需要设置mysql的用户owner以及group。

 chown -R mysql:mysql /var/lib/mysql                #这一步是绝对的重点,不要忘记,若启动mysql daemon出错,需要检查下权限问题。

否则,启动mysqld是会失败的。。。。

 [root@CloudGame bin]# service mysql start
Starting MySQL.The server quit without updating PID file (/[FAILED]mysql/CloudGame.pid).

调查问题啊,由于mysql的默认配置情况下,错误日志是在basedir下面,文件名为$HOSTNAME.err,查看文件,既可以看到错误的详情内容。

 [root@CloudGame mysql]# ll
total
-rw-rw----. mysql mysql Sep : auto.cnf
-rw-r-----. mysql mysql Sep : CloudGame.err
-rw-r-----. mysql mysql Sep : CloudGame.err-bk
-rw-rw----. mysql mysql Sep : ibdata1
-rw-rw----. mysql mysql Sep : ib_logfile0
-rw-rw----. mysql mysql Sep : ib_logfile1
drwx------. mysql mysql Sep : mysql
drwx------. mysql mysql Sep : performance_schema
drwx------. mysql mysql Sep : test
[root@CloudGame mysql]# pwd
/var/lib/mysql

初始安装的数据库是没有root密码的,即root用户不需要密码即可登录。当MySQL daemon启动的情况下,可以执行mysql_secure_installnation可以设置一下数据库的基本信息。

 [root@CloudGame bin]# mysql_secure_installation 

 NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here. Enter current password for root (enter for none):
OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation. Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success! By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment. Remove anonymous users? [Y/n] y
... Success! Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] n
... skipping. By default, MySQL comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment. Remove test database and access to it? [Y/n] n
... skipping. Reloading the privilege tables will ensure that all changes made so far
will take effect immediately. Reload privilege tables now? [Y/n] n
... skipping. All done! If you've completed all of the above steps, your MySQL
installation should now be secure. Thanks for using MySQL! Cleaning up...
[root@CloudGame bin]#

OK,到此,MYSQL 5.6.33的安装结束。 即可正常使用了!

CentOS 6.8下安装MySQL 5.6.33的更多相关文章

  1. centos 6.5下安装mysql+nginx+redmine 3.1.0 笔记

    centos 6.5下安装mysql+nginx+redmine 3.1.0 笔记 目录[-] 过程 1.安装RVM 2.利用rvm安装 Ruby 1.9.3 并设为默认 3.安装rails 4.安装 ...

  2. CentOS 6.5下安装MySQL 5.6.21

    Linux中使用最广泛的数据库就是MySQL,使用在线yum的方式安装的版本落后MySQL网站好几个小版本,本节亲自测试安装新版的MySQL. 测试机器环境: VMware Workstation 1 ...

  3. CentOS 7+ 环境下安装MySQL

    在CentOS中默认安装有MariaDB,但是我们需要的是MySQL,安装MySQL可以覆盖MariaDB MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可 ...

  4. centos 6.5下安装mysql

    1.检测系统是否已经安装过mysql或其依赖,若已装过要先将其删除,否则第4步使用yum安装时会报错: 1 # yum list installed | grep mysql 2 mysql-libs ...

  5. CentOS 7.3下安装MySql

    1.下载mysql源安装包 wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm   2.安装mysql源 ...

  6. CentOS 6.5下安装MySql 5.7

    不管您按下面的方法安装成功否,请留个言,把您遇到的问题写上共勉! 包下载http://url.cn/WrNg5S 环境: 1).软硬件:E6420双核CPU,8G内存,1T硬盘 2).虚拟机下 Cen ...

  7. Linux(CentOS 6.5) 下安装MySql 5.7.18 二进制版本粗浅攻略

    鉴于Linux和mysql因不同版本,安装方式也不同,所以在阅读本攻略前,请确保各位同学的版本和我的Linux.MySql 版本一致. 如果不一致,只能参考. 我的版本: Linux CentOS 6 ...

  8. centos 7.0下安装MySQL 5.7.26

    1.下载MySQL 5.7.26安装包,卸载自带MySQL数据库 yum remove mariadb-libs -y yum install -y libaio-devel 2.上传MySQL 5. ...

  9. CentOS 7 下安装 MySQL 8.0

    前言 本篇文章主要介绍在 CentOS 7 环境下安装 MySQL 8.0. 正文 1. 配置yum源 首先在 https://dev.mysql.com/downloads/repo/yum/ 找到 ...

随机推荐

  1. 最精简的django程序

    一.程序框架 1.结构图

  2. attr和prop

    <div class="content-item active"> <table class="table"> <thead> ...

  3. Redis + php扩展的安装与配置(windows)

    -->安装Redis服务 下载redis安装包 http://pan.baidu.com/s/1pJiVFHx 下载后解压 把解压后文件夹里面的文件(根据自己的系统位数选择32位或者64位)拷贝 ...

  4. iOS开发UI篇—IOS开发中Xcode的一些使用技巧

    iOS开发UI篇—IOS开发中Xcode的一些使用技巧 一.快捷键的使用 经常用到的快捷键如下: 新建 shift + cmd + n     新建项目 cmd + n             新建文 ...

  5. windows下python安装pyquery

    安装pyquery之前首先要明确一点,easyinstall 是一款python包管理器,类似于node的npm,用于安装python的扩展包,它安装的包是以*.egg的方式. 要安装pq需要经历以下 ...

  6. iOS开发资源整理【01】

    一.网站 Code4App         开发者常用库分享网站 GitHub        git是一个优秀的分布式版本控制系统 stackoverflow    技术在线问答网站 CocoaChi ...

  7. JavaScript 数组的创建

    数组定义:数组(array)是一种数据类型,它包含或者存储了编码的值,每个编码的值称作该数组的一个元素(element), 每个元素的编码被称作为下标(index). JavaScript一维数组创建 ...

  8. enmo_day_05

    大文件表空间 小文件表空间 临时表空间 :不需自己删除,session断了之后自动删除 永久表空间 : 本地管理表空间 :使用位图表示表空间,0表示没有数据,1表示有数据, 数据字典管理表空间 eg ...

  9. 利用ClouderaManager启动HBase时,出现 master.TableNamespaceManager: Namespace table not found. Creating...

    1.错误描述: 出现上述这个错误的原因是我之前已经安装了Cloudera Manager中的CDH,其中添加了所有的服务,当然也包含HBase.然后重新安装的时候,就会出现如下错误: Failed t ...

  10. IIS 工作原理之非托管代码旅程(一)

    IIS6改变 IIS6可以为每个不同的虚拟目录创建不同的程序池,这样缩小了IIS的Application Pool的颗粒度,不同的虚拟目录之间是互不影响的. IIS6(和IIS7经典模式)与IIS7集 ...