-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. block diagonal matrix 直和 块对角矩阵 不完美 有缺陷 缩放 射影几何

    小结: 1.block diagonal matrix  直和 块对角矩阵 A block diagonal matrix is a block matrix that is a square mat ...

  2. PHP之对象类型

    PHP之object对象 对象初始化 要创建一个新的对象object,使用new语句实例化一个类: 转化为对象 如果讲一个对象转化成对象,它将不会有任何变化.如果其它任何类型的值被转化成对象,将会创建 ...

  3. linux查内存操作:cat /proc/meminfo

    https://www.cnblogs.com/zhuiluoyu/p/6154898.html cat /proc/meminfo

  4. 20165336 实验三 敏捷开发与XP实践

    20165336 实验三 敏捷开发与XP实践 一.实验报告封面 课程:Java程序设计 班级:1653班 姓名:康志强 学号:20165336 指导教师:娄嘉鹏 实验日期:2018年4月28日 实验时 ...

  5. 【PyQt5-Qt Designer】QSlider滑块

    QSlider滑块 QSlider简介 QSlider小部件提供了一个垂直或水平滑块. 滑块是控制有界值的经典控件.它允许用户沿水平或垂直凹槽移动滑块手柄,并将手柄的位置转换为合法范围内的整数值. Q ...

  6. CSS 优先级&伪元素&伪类

    优先级 单冒号(:)用于CSS3伪类,双冒号(::)用于CSS3伪元素 伪元素 属性 描述 CSS :first-letter 向文本的第一个字母添加特殊样式 1 :first-line 向文本的首行 ...

  7. TensorFlow设置GPU占用量

    默认开启Tensorflow的session之后,就会占用几乎所有的显存,进行如下设置即可: 指定GPU编号: import os os.environ["CUDA_VISIBLE_DEVI ...

  8. ReentrantLock可重入锁的原理及使用场景

    摘要 从使用场景的角度出发来介绍对ReentrantLock的使用,相对来说容易理解一些. 场景1:如果已加锁,则不再重复加锁 a.忽略重复加锁.b.用在界面交互时点击执行较长时间请求操作时,防止多次 ...

  9. LeetCode-714.Best Time to Buy and Sell Stock with Transaction Fee

    Your are given an array of integers prices, for which the i-th element is the price of a given stock ...

  10. netstat 查看端口

    -l 仅列出有在监听(listen)的服务状态 -n 拒绝显示别名,能显示数字的全部转化成数字 -p 显示建立相关链接的程序名 -t 仅显示 tcp 相关选项 -u 仅显示 udp 相关选项 -a 显 ...