CentOS 6.8下安装MySQL 5.6.33
此处操作,包含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的更多相关文章
- 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.安装 ...
- CentOS 6.5下安装MySQL 5.6.21
Linux中使用最广泛的数据库就是MySQL,使用在线yum的方式安装的版本落后MySQL网站好几个小版本,本节亲自测试安装新版的MySQL. 测试机器环境: VMware Workstation 1 ...
- CentOS 7+ 环境下安装MySQL
在CentOS中默认安装有MariaDB,但是我们需要的是MySQL,安装MySQL可以覆盖MariaDB MariaDB数据库管理系统是MySQL的一个分支,主要由开源社区在维护,采用GPL授权许可 ...
- centos 6.5下安装mysql
1.检测系统是否已经安装过mysql或其依赖,若已装过要先将其删除,否则第4步使用yum安装时会报错: 1 # yum list installed | grep mysql 2 mysql-libs ...
- CentOS 7.3下安装MySql
1.下载mysql源安装包 wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm 2.安装mysql源 ...
- CentOS 6.5下安装MySql 5.7
不管您按下面的方法安装成功否,请留个言,把您遇到的问题写上共勉! 包下载http://url.cn/WrNg5S 环境: 1).软硬件:E6420双核CPU,8G内存,1T硬盘 2).虚拟机下 Cen ...
- Linux(CentOS 6.5) 下安装MySql 5.7.18 二进制版本粗浅攻略
鉴于Linux和mysql因不同版本,安装方式也不同,所以在阅读本攻略前,请确保各位同学的版本和我的Linux.MySql 版本一致. 如果不一致,只能参考. 我的版本: Linux CentOS 6 ...
- 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. ...
- CentOS 7 下安装 MySQL 8.0
前言 本篇文章主要介绍在 CentOS 7 环境下安装 MySQL 8.0. 正文 1. 配置yum源 首先在 https://dev.mysql.com/downloads/repo/yum/ 找到 ...
随机推荐
- 数据库 基础篇4(mysql语法---表)
5 表管理 选择数据库 5.1 查看所有表 mysql> show tables; +-----------------+ | Tables_in_day15 | +------------ ...
- PostMan 发送list<Object>
- java多线程之CAS
前言 在Java并发包中有这样一个包,java.util.concurrent.atomic,该包是对Java部分数据类型的原子封装,在原有数据类型的基础上,提供了原子性的操作方法,保证了线程安全.下 ...
- Sprint2-3.0
后续安排 第16周 周二晚7点之前将本代码上传到GITHUB. GITHUB地址:https://github.com/QueenIcey/teamwork/tree/master/eslife1 周 ...
- call(),apply(),bind()与回调
1.call(),apply(),bind()方法 JavaScript 中通过call或者apply用来代替另一个对象调用一个方法,将一个函数的对象上下文从初始的上下文改变为由 thisObj 指定 ...
- 关于在biweb 中安装完成后 首页上方报错问题的解决
在利用biweb进行网站开发的时候 首先得安装biweb 安装就是下一步,,,下一步....下一步 最后就成功了 .但是有种情况我总是竟让遇到,而已有的人安装会遇到 有的人安装就不会遇到,后 ...
- angular directive指令内的参数
angular.module('myApp', []) .directive('myDirective', function() { return { restrict: String, priori ...
- guava学习--集合2&Range
转载:http://www.cnblogs.com/peida/p/Guava_ImmutableCollections.html Table: 当我们需要多个索引的数据结构的时候,通常情况下,我们只 ...
- JS如何判断包括IE11在内的IE浏览器 <转载>
今天碰到一个奇怪的问题,有一个页面,想指定用IE浏览器打开,在VS开发环境没有问题,但部署到服务器上,即使是用IE打开页面,还是提示“仅支持IE”,真是晕啊!! 判断是否IE浏览器用的是window. ...
- Rhel6-moosefs分布式存储配置文档
MFS 特性: 1. Free(GPL) 2. 通用文件系统,不需要修改上层应用就可以使用 3. 可以在线扩容,体系架构可伸缩性极强. 4. 部署简单. 5. 高可用,可设置任意的文件冗余程度(提供比 ...