-rw-rw-r--.  hadoop hadoop  Nov  : mysql-5.7.-.el6.x86_64.rpm-bundle.tar

tar -xvf mysql-5.7.12-1.el6.x86_64.rpm-bundle.tar
-rw-r--r--.  hadoop hadoop   Mar    mysql-community-client-5.7.-.el6.x86_64.rpm
-rw-r--r--. hadoop hadoop Mar mysql-community-common-5.7.-.el6.x86_64.rpm
-rw-r--r--. hadoop hadoop Mar mysql-community-devel-5.7.-.el6.x86_64.rpm
-rw-r--r--. hadoop hadoop Mar mysql-community-embedded-5.7.-.el6.x86_64.rpm
-rw-r--r--. hadoop hadoop Mar mysql-community-embedded-devel-5.7.-.el6.x86_64.rpm
-rw-r--r--. hadoop hadoop Mar mysql-community-libs-5.7.-.el6.x86_64.rpm
-rw-r--r--. hadoop hadoop Mar mysql-community-libs-compat-5.7.-.el6.x86_64.rpm
-rw-r--r--. hadoop hadoop Mar mysql-community-server-5.7.-.el6.x86_64.rpm
-rw-r--r--. hadoop hadoop Mar mysql-community-test-5.7.-.el6.x86_64.rpm
[hadoop@itcast01 xinwei]$ rpm -e mysql-libs-5.1.-.el6_3.x86_64
error: Failed dependencies:
libmysqlclient.so.()(64bit) is needed by (installed) postfix-:2.6.-2.2.el6_1.x86_64
libmysqlclient.so.(libmysqlclient_16)(64bit) is needed by (installed) postfix-:2.6.-2.2.el6_1.x86_64
mysql-libs is needed by (installed) postfix-:2.6.-2.2.el6_1.x86_64
[hadoop@itcast01 xinwei]$ sudo rpm -e mysql-libs-5.1.-.el6_3.x86_64
[sudo] password for hadoop:
error: Failed dependencies:
libmysqlclient.so.()(64bit) is needed by (installed) postfix-:2.6.-2.2.el6_1.x86_64
libmysqlclient.so.(libmysqlclient_16)(64bit) is needed by (installed) postfix-:2.6.-2.2.el6_1.x86_64
mysql-libs is needed by (installed) postfix-:2.6.-2.2.el6_1.x86_64
[hadoop@itcast01 xinwei]$ sudo rpm -ivh --force mysql-community-common-5.7.-.el6.x86_64.rpm
warning: mysql-community-common-5.7.-.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ########################################### [%]
:mysql-community-common ########################################### [%]
[hadoop@itcast01 xinwei]$ sudo rpm -ivh --force mysql-community-libs-5.7.-.el6.x86_64.rpm
warning: mysql-community-libs-5.7.-.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ########################################### [%]
:mysql-community-libs ########################################### [%]
[hadoop@itcast01 xinwei]$ sudo rpm -ivh --force mysql-community-client-5.7.-.el6.x86_64.rpm
warning: mysql-community-client-5.7.-.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ########################################### [%]
:mysql-community-client ########################################### [%]
[hadoop@itcast01 xinwei]$ sudo rpm -ivh --force mysql-community-server-5.7.-.el6.x86_64.rpm
warning: mysql-community-server-5.7.-.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ########################################### [%]
:mysql-community-server ########################################### [%]
[hadoop@itcast01 xinwei]$ sudo service mysqld start
Initializing MySQL database: [ OK ]
Installing validate password plugin: [ OK ]
Starting mysqld: [ OK ]
[hadoop@itcast01 xinwei]$ sudo vi /var/log/mysqld.log
[hadoop@itcast01 xinwei]$ mysql -uroot -p
Enter password:
ERROR (): Access denied for user 'root'@'localhost' (using password: NO)
[hadoop@itcast01 xinwei]$ mysql -uroot -p5GQ?S+O?a*(
-bash: syntax error near unexpected token `('
[hadoop@itcast01 xinwei]$ mysql -uroot -p'5GQ?S+O?a*7('
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
Server version: 5.7. Copyright (c) , , 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> show databases;
ERROR (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql> show database;
ERROR (): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'database' at line
mysql> show database;
ERROR (): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'database' at line
mysql> alter user 'root'@'localhost' identified by 'Mysql@123456';
Query OK, rows affected (0.42 sec) mysql> flush privileges;
Query OK, rows affected (0.07 sec) mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
rows in set (0.07 sec) grant all privileges on *.* to root with grant option;
grant all privileges on * to 'root'@'localhost' identified by 'xxx!'
grant all privileges on * to 'root'@'%' identified by 'xxx!';
flush privileges;

linux 下安装mysql-5.7.12-1.el6.x86_64.rpm-bundle.tar的更多相关文章

  1. Linux下安装mysql(2) 及常见问题解决(CentOS)

    上一篇讲了基本的安装,这篇姑且算作进阶吧 链接Linux下安装mysql(1) 1.准备好mysql的rpm安装包 2.解压并进入usr/local/mysql 3.先执行useradd mysql( ...

  2. Linux下安装mysql教程

    Linux下安装mysql  MySQL官网:https://dev.mysql.com/downloads/mysql/ 到mysql官网下载mysql编译好的二进制安装包,在下载页面Select ...

  3. 【云服务器部署】---Linux下安装MySQL

    [云服务器部署]---Linux下安装MySQL 有关如何阿里云ECS建网站,推荐一片文章,我是是通过这篇文章安装tomcat和jdk的 网址:阿里云ECS建网站(建站)超详细全套完整图文教程! 注意 ...

  4. Linux 下安装mysql 5.7

    Linux 下安装mysql 5.7 本人首次安装时按照菜鸟教程的步骤一步一步来的,结果意外的是 装成5.6了,而且各种无厘头的问题,例如无法启动... 本文参照 大佬:‘这个名字想了很久~’ 的&l ...

  5. linux下安装mysql问题总结(一)mysqld_safe mysqld from pid file /usr/local/mysql/data/mysql.pid ended

    linux下安装mysql数据库 linux版本:CentOS release 6.8 (Final) mysql版本:mysql-5.7.16-linux-glibc2.5-x86_64.tar.g ...

  6. Linux下安装mysql(1)(CentOS)

    标题是(1)也就是说这次是基础安装,这种方式安装,没有组的创建,权限管理,配置文件更改等,仅仅是最基本的安装,适合第一次在linux上安装mysql的新手 1.准备好安装包(Linux-Generic ...

  7. linux下安装mysql(rpm文件安装)

    数据库包下载: https://www.mysql.com/downloads/ 在GPL开原协议的社区开源版里边下载 我们用mysql community server里边的 其中workbench ...

  8. Linux 下安装mysql 8.0.11(CentOS 7.4 系统)

    CentOS 7 自带MariaDB (前mysql开发工程师开发的,因此与吗,mysql 有很多相似之处) 1.检查卸载自带的MariaDB rpm -qa|grep mariadb //查询出来已 ...

  9. Linux下安装 MySQL

    Ubuntu环境 使用二进制安装包安装,相对简单绿色 1.到官网下载二进制压缩包http://dev.mysql.com/downloads/mysql/ 2.选择需要的版本 目前最新为5.7.之后选 ...

  10. windows linux 下安装mysql 报1045 等错误

    曾经在windows 下安装mysql 没怎么出现过问题.而在linux下安装的时候出现了一些问题,昨天在windows 安装的时候也出现了1045 错误.就个人经历来看这个问题就是 root用户pa ...

随机推荐

  1. spark Pair RDD 基础操作

    下面是Pair RDD的API讲解 转化操作 reduceByKey:合并具有相同键的值: groupByKey:对具有相同键的值进行分组: keys:返回一个仅包含键值的RDD: values:返回 ...

  2. RN NetInfo使用

    代码: class NetInfoView extends Component { getNetInfo() { //如果是andorid的程序,需要在xml添加获取网络请求权限 NetInfo.fe ...

  3. The iOS Simulator deployment target is set to 6.0

    XCODE警告 Showing All Messages :-1: The iOS Simulator deployment target is set to 6.0, but the range o ...

  4. Pycharm快捷键大全(windows + Mac)

    Windows快捷键 1.编辑 Ctrl + Space    基本的代码完成(类.方法.属性) Ctrl + Alt + Space  快速导入任意类 Ctrl + Shift + Enter    ...

  5. HTTP协议与WEB框架简介

    HTTP协议与WEB框架简介 一.HTTP协议 HTTP简介 HTTP协议是Hyper Text Transfer Protocol(超文本传输协议)的缩写,是用于从万维网(WWW:World Wid ...

  6. Python3学习之路~3.2 递归、函数式编程、高阶函数、匿名函数、嵌套函数

    1 递归 在函数内部,可以调用其他函数.如果一个函数在内部调用自身本身,这个函数就是递归函数. def calc(n): print(n) if int(n / 2) == 0: return n r ...

  7. windows系统redmine安装总结

    今天在公司服务器上安装了redmine,主要用于项目管理和缺陷跟踪.安装过程比较简单,总结如下: 1.网上下载redmine安装包(bitnami-redmine-3.3.1-0-windows-in ...

  8. oracle对日期date类型操作的函数

    无论是DATE还是timestamp都可以进行加减操作 加一个简单的数来增加天 max,min来求其最大最小日期 avg,sum就只能先转成数字类型才可用 使用内置函数add_months来增加年和月 ...

  9. CentOS7.0+Zend Guard Loader for PHP 5.6环境搭建

    本文是在centos7.0环境下搭建的, 由于我的php是5.6版本的, 所以需要去下载对应的Zend Guard Loader. 下载地址: http://www.zend.com/en/produ ...

  10. vue-devtools : vue的调试工具及log显示工具 vconsole

    使用 devtools 有很多好处,比如它可以让你能够实时编辑数据属性并立即看到其反映出来的变化.另一个主要的好处是能够为 Vuex 提供时间旅行式的调试体验. 注意:请留意如果页面使用了一个生产环境 ...