ASP源码.NET源码PHP源码JSP源码JAVA源码DELPHI源码PB源码VC源码VB源码Android源码
当前位置:首页 >> 数据库 >> MySql >> CentOS 65 下安装MySQL 5712,使用官网下载的rpm安装包

CentOS 65 下安装MySQL 5712,使用官网下载的rpm安装包(2/2)

来源:网络整理     时间:2016-05-14     关键词:安装MySQL,centos

本篇文章主要介绍了"CentOS 65 下安装MySQL 5712,使用官网下载的rpm安装包",主要涉及到安装MySQL,centos方面的内容,对于MySql感兴趣的同学可以参考一下: CentOS 6.5 下安装MySQL 5.7.12,使用官网下载的rpm安装包下载安装包下载地址:http://cdn.mysql.com//Download...

# grep 'temporary password' /var/log/mysqld.log
2016-05-14T02:57:24.372528Z 1 [Note] A temporary password is generated for root@localhost: ?sSq8?.IucXV
[root@localhost /]# 
[root@localhost /]# mysql -uroot -p?sSq8?.IucXV
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.7.12

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 
使用下面的命令修改密码

ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!';
密码必须包含大写字母小写字母数字和符号,不然会提示:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements(您的密码不符合当前的安全策略要求

结束语

注意,使用 yum 安装的和使用rpm安装的有所不同(要么就是不同的版本安装后初始密码的位置不同),我记得之前安装完之后初始密码是保存在 /root/.mysql_sercret 文件中的。

要在Windows下连接还需要做点工作,参考:CentOS下安装MySQL,Windows下使用Navicat for MySql连接
之前写过,这次又重新总结,发现还是存在着一些差异!

如果你在安装过程中发现、遇到了什么问题,欢迎一起探讨。

=======================分隔符===============================

一篇文章不贴张图,还真有点不习惯!

centos7安装mysql,centos6.6安装mysql,centos5.5安装mysql,centos安装mysql5.7,centos怎么安装mysql,centos编译安装mysql,centos离线安装mysql,centos 安装mysql5.6,centos卸载mysql,centos下安装mysql,centos6安装mysql,centos中安装mysql,centos5.8安装mysql,centos6.4安装mysql,centos7下安装mysq

以上就介绍了CentOS 65 下安装MySQL 5712,使用官网下载的rpm安装包,包括了安装MySQL,centos方面的内容,希望对MySql有兴趣的朋友有所帮助。

本文网址链接:http://www.codes51.com/article/detail_1069096_2.html

相关图片

相关文章