yum方式安装MySQL5.7-centos6.4 64位

下载MySQL YUM源(官网下载)

wget http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm

查看包里面的内容

[[email protected] ~]# rpm -qplmysql57-community-release-el6-7.noarch.rpm

/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

/etc/yum.repos.d/mysql-community-source.repo

/etc/yum.repos.d/mysql-community.repo

查看yum列表

yum list |grep mysql

安装MySQL

yum install mysql-client mysql-server

启动MySQL服务

[[email protected] ~]# service mysqld start

查看初始密码

[[email protected] ~]# grep ‘temporary password‘/var/log/mysqld.log

进行初始的安全设置

[[email protected] ~]# cd /usr/bin/

[[email protected] bin]# mysql_secure_installation

设置如下内容:

重置密码

删除匿名用户

删除测试数据库

关闭root用户的远程登录

[[email protected] bin]# mysql_secure_installation

Securing the MySQL server deployment.

Enter password for user root:

The existing password for the user accountroot has expired. Please set a new password.

New password:

Re-enter new password:

...Failed! Error: Your password does not satisfy the current policy requirements

New password:

Re-enter new password:

The ‘validate_password‘ plugin is installedon the server.

The subsequent steps will run with theexisting configuration

of the plugin.

Using existing password for root.

Estimated strength of the password: 100

Change the password for root ? ((Press y|Yfor Yes, any other key for No) : y

New password:

Re-enter new password:

Estimated strength of the password: 100

Do you wish to continue with the passwordprovided?(Press y|Y for Yes, any other key for No) : y

By default, a MySQL installation has ananonymous user,

allowing anyone to log into MySQL withouthaving to have

a user account created for them. This isintended only for

testing, and to make the installation go abit smoother.

You should remove them before moving into aproduction

environment.

Remove anonymous users? (Press y|Y for Yes,any other key for No) : y

Success.

Normally, root should only be allowed toconnect from

‘localhost‘. This ensures that someonecannot guess at

the root password from the network.

Disallow root login remotely? (Press y|Yfor Yes, any other key for No) : n

...skipping.

By default, MySQL comes with a databasenamed ‘test‘ that

anyone can access. This is also intendedonly for testing,

and should be removed before moving into aproduction

environment.

Remove test database and access to it?(Press y|Y for Yes, any other key for No) : n

...skipping.

Reloading the privilege tables will ensurethat all changes

made so far will take effect immediately.

Reload privilege tables now? (Press y|Y forYes, any other key for No) : y

Success.

All done!(提示全部设置完毕)

然后你就可以享受MySQL带来的乐趣了。

时间: 2024-11-05 13:39:59

yum方式安装MySQL5.7-centos6.4 64位的相关文章

CentOS7下yum方式安装mysql5.6

在Centos7中用MariaDB代替了mysql数据库.所以在新安装MySQL前必须做好对系统的清理工作. 一.清理CentOS7下的MariaDB. [[email protected] ~]#rpm -qa | gremp mariadb         [[email protected] ~]# rpm -e --nodeps mariadb.x86_64 1:5.5.41-2.el7_0 二.下载MySQL的yum包 Linux系统自带的repo是不会自动更新每个软件的最新版本(基本

CentOS7 yum方式安装MySQL5.7

在CentOS中默认安装有MariaDB,这个是MySQL的分支,但为了需要,还是要在系统中安装MySQL,而且安装完成之后可以直接覆盖掉MariaDB. 1 下载并安装MySQL官方的 Yum Repository [[email protected] ~]# wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm 使用上面的命令就直接下载了安装用的Yum Repository,大概25KB

centos7和centos6.5环境rpm方式安装mysql5.7和mysql5.6详解

centos7和centos6.5环境rpm方式安装mysql5.7和mysql5.6详解 centos环境安装mysql5.7 其实不建议安装mysql5.7 语法和配置可能和以前的版本区别较大,多坑,慎入 1.yum方式安装(不推荐) a.安装mysql5.7 yum源 centos6: wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpmyum localinstall mysql-community-release

在Centos6.8采用通用二进制的方式安装MySQL5.7.13

安装环境:Centos6.8 目的:通过通用二进制(Generic Binary)的方式安装MySQL5.7.13 所需软件:mysql-5.7.13-linux-glibc2.5-x86_64.tar(请自行从MySQL官网下载) 步骤: 1.创建mysql用户,mysql组 groupadd -g 3306 mysql useradd -g mysql -u 3306 -s /sbin/nologin -M mysql id mysql #查看是否创建成功 2.通过逻辑卷的方式创建MySQL

centos6.3用yum方式安装npm实现mongo可视化操作

要通过 yum 来安装 nodejs 和 npm 需要先给 yum 添加 epel 源 ##添加 epel 源 64位: rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 32位: rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm 导入 key:

无外网情况下RPM方式安装MySQL5.6

RPM方式安装MySQL5.6 a. 检查MySQL及相关RPM包,是否安装,如果有安装,则移除(rpm –e 名称) 1 [[email protected] ~]# rpm -qa | grep -i mysql 2 mysql-libs-5.1.66-2.el6_3.x86_64 3 [[email protected] ~]# yum -y remove mysql-libs* b. 下载Linux对应的RPM包,如:CentOS6.4_64对应的RPM包,如下:这里给出我下载好的包,官

Centos6.7 64位 kvm虚拟化安装配置

参考资料: http://www.apelearn.com/bbs/thread-8299-1-1.html http://taokey.blog.51cto.com/4633273/1540873 http://www.server-world.info/en/note?os=CentOS_6&p=kvm&f=1http://koumm.blog.51cto.com/703525/1288795http://www.361way.com/category/v ... d-automati

CentOS 6.5 RPM方式安装MySQL5.6

转:http://www.juziku.com/wiki/13810.htm RPM方式安装MySQL5.6 a. 检查MySQL及相关RPM包,是否安装,如果有安装,则移除(rpm –e 名称) 1 [[email protected] ~]# rpm -qa | grep -i mysql 2 mysql-libs-5.1.66-2.el6_3.x86_64 3 [[email protected]host ~]# yum -y remove mysql-libs* b. 下载Linux对应

如何从MYSQL官方YUM仓库安装MYSQL5.x 原理一样只要获取对的仓库依赖安装对的仓库依赖就ok了,我就是用这种安装的5.7

如何从MYSQL官方YUM仓库安装MYSQL5.6 2013年10月,MySQL开发团队正式宣布支持Yum仓库,这就意味着我们现在可以从这个Yum库中获得最新和最优版的MySQL安装包.本文将在一台全新安装的CentOS6上安装MySQL5.6,如果你不熟悉MySQL5.6的新特性,我建议从MySQL 5.6的新特性开始,其中有很多非常有用的特性. 首先我们需要从MySQL开发者网站下载Yum仓库文件,导入Yum库后,一个简单的yumupdate命令将确保你运行在MySQL5.6的最新发布版上,