-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. LeetCode 953 Verifying an Alien Dictionary 解题报告

    题目要求 In an alien language, surprisingly they also use english lowercase letters, but possibly in a d ...

  2. Python+Flash+NodeJS 接口自动化平台

    一.前端安装步骤# manager-web(1)下载项目 git clone https://github.com/t880216t/manager-web.git (2) 安装依赖 cnpm ins ...

  3. 洛谷P3242 接水果 [HNOI2015] 整体二分

    正解:整体二分+树状数组 解题报告: 传送门! 题目还是大概解释下?虽然其实是看得懂的来着,,, 大概就是说给一棵树.给定一些询问,每个询问都是说在两个点之间的路径上的子路径的第k大是什么 然后看到这 ...

  4. websocketd

    https://www.cnblogs.com/tinywan/p/6826125.html https://www.jianshu.com/p/63afd0099565

  5. 拦截器的作用之session认证登录和资源拦截

    背景: 在项目中我使用了自定义的Filter 这时候过滤了很多路径,当然对静态资源我是直接放过去的,但是,还是出现了静态资源没办法访问到springboot默认的文件夹中得文件.另外,经常需要判断当前 ...

  6. python面向对象的三大特性

    一.继承 面向对象中的继承就是继承的类直接拥有被继承类的属性而不需要在自己的类体中重新再写一遍,其中被继承的类叫做父类.基类,继承的类叫做派生类.子类.在python3中如果不指定继承哪个类,默认就会 ...

  7. dedecms前端无法调用自定义变量怎么解决

    网友问ytkah说他的dedecms前端无法调用自定义变量要怎么解决,登录他的网站后台看了一下,自定义变量已经添加了,也写入了数据库表中,但是就是前台没办法调用出来,后面想想可能是文件权限不够,具体是 ...

  8. 转场动画UINavigationControllerDelegate

    从iOS7开始,苹果更新了自定义ViewController转场的API,这些新增的类和接口让很多人困惑,望而却步.本文就从这些API入口,让读者理清这些API错综复杂的关系. 几个protocol ...

  9. Failed to load bundle(http://loaclhost:8081/index.bundle?platfrom=ios.....

    另外RN的创建的项目可能上架审核不太容易通过,祝你好运 1.可能当前同时运行多个项目,关闭一个项目就可以,或者重启 2.init 命令默认会创建最新的版本,而目前最新的 0.45 及以上版本需要下载 ...

  10. what's the python之内置函数

    what's the 内置函数? 内置函数,内置函数就是python本身定义好的,我们直接拿来就可以用的函数.(python中一共有68中内置函数.)     Built-in Functions   ...