linux 下安装mysql-5.7.12-1.el6.x86_64.rpm-bundle.tar
-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的更多相关文章
- Linux下安装mysql(2) 及常见问题解决(CentOS)
上一篇讲了基本的安装,这篇姑且算作进阶吧 链接Linux下安装mysql(1) 1.准备好mysql的rpm安装包 2.解压并进入usr/local/mysql 3.先执行useradd mysql( ...
- Linux下安装mysql教程
Linux下安装mysql MySQL官网:https://dev.mysql.com/downloads/mysql/ 到mysql官网下载mysql编译好的二进制安装包,在下载页面Select ...
- 【云服务器部署】---Linux下安装MySQL
[云服务器部署]---Linux下安装MySQL 有关如何阿里云ECS建网站,推荐一片文章,我是是通过这篇文章安装tomcat和jdk的 网址:阿里云ECS建网站(建站)超详细全套完整图文教程! 注意 ...
- Linux 下安装mysql 5.7
Linux 下安装mysql 5.7 本人首次安装时按照菜鸟教程的步骤一步一步来的,结果意外的是 装成5.6了,而且各种无厘头的问题,例如无法启动... 本文参照 大佬:‘这个名字想了很久~’ 的&l ...
- 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 ...
- Linux下安装mysql(1)(CentOS)
标题是(1)也就是说这次是基础安装,这种方式安装,没有组的创建,权限管理,配置文件更改等,仅仅是最基本的安装,适合第一次在linux上安装mysql的新手 1.准备好安装包(Linux-Generic ...
- linux下安装mysql(rpm文件安装)
数据库包下载: https://www.mysql.com/downloads/ 在GPL开原协议的社区开源版里边下载 我们用mysql community server里边的 其中workbench ...
- Linux 下安装mysql 8.0.11(CentOS 7.4 系统)
CentOS 7 自带MariaDB (前mysql开发工程师开发的,因此与吗,mysql 有很多相似之处) 1.检查卸载自带的MariaDB rpm -qa|grep mariadb //查询出来已 ...
- Linux下安装 MySQL
Ubuntu环境 使用二进制安装包安装,相对简单绿色 1.到官网下载二进制压缩包http://dev.mysql.com/downloads/mysql/ 2.选择需要的版本 目前最新为5.7.之后选 ...
- windows linux 下安装mysql 报1045 等错误
曾经在windows 下安装mysql 没怎么出现过问题.而在linux下安装的时候出现了一些问题,昨天在windows 安装的时候也出现了1045 错误.就个人经历来看这个问题就是 root用户pa ...
随机推荐
- C语言中gets(), scanf()区别
C语言中gets(), scanf()区别 相同点: gets()和 scanf() 1.函数都可用于输入字符串 2.都在stdio.h头文件中定义. 3.字符串接受字符结束后自动加'\0' 不同点: ...
- 使用Sqlserver事务发布实现数据同步(sql2008)_Mssq l数据库教程
事务的功能在sqlserver中由来已久,因为最近在做一个数据同步方案,所以有机会再次研究一下它以及快照等,发现还是有很多不错的功能和改进的.这里以sqlserver2008的事务发布功能为例,对发布 ...
- [daily][dpdk] 内核模块(网卡驱动)无法卸载
由于程序的异常退出, 内核的引用计数没有被清除(我猜的). 所以驱动不能被卸载掉, 强制也不行. 如下: [root@localhost ~]# insmod /opt/scorpion/KingKo ...
- 转:SAX解析的characters方法被多次调用
原文地址:https://blog.csdn.net/liuxiaoddd/article/details/28885177 android SAX解析的characters方法被多次调用 同理 试用 ...
- linux测试环境维护之磁盘空间维护
常见需要定期清理的日志有: 清理oracle监听日志: 1.进入/opt/oracle/db/diag/tnslsnr/sels-186/listener/alert目录下, 执行命令: rm -rf ...
- vue项目中 如何让外部引入的js模块 的this值 指向vue实例
当前是vue项目,想在tool.js(工具模块)中封装一个跳转页面的方法, goToUrl(name,query){ if(query){ if(query.addressCode){ vueObje ...
- 几种Linux 查询外网出口IP的方法(转)
原文:http://www.cnblogs.com/wudonghang/p/354289a61129731e7d2075968356e6ad.html Curl 纯文本格式输出: curl ican ...
- I2C驱动框架(kernel-2.6.22.6)
以用i2c通信的实时时钟为例 框架入口源文件:i2c_m41t11.c (可根据入口源文件,再按着框架到内核走一遍) 内核版本:linux_2.6.22.6 硬件平台:JZ2440 以下是驱动框架 ...
- SQL assistant
SQL assistant取消自动生成别名 SQL assistant-->Options-->DB option -->SQL Servers-->Auto Complete ...
- Stylus的使用
vue-cli项目安装使用stylus步骤:1. npm install stylus -D命令,在项目内安装stylus.(注意:命令结尾 -D 即是 --save-dev 的简写形式) 2.需要安 ...