CentOS6.4x64安装mysql5.6.23(rpm)
#查看已安装的的mysql
shell>rpm -qa|grep -i mysql
#根据上条命令的结果卸载mysql
shell>rpm -e -nodeps mysql*
#下载mysql的server和client
shell>cd /usr/local
shell>wget http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-server-5.6.23-1.el6.x86_64.rpm
shell>wget http://cdn.mysql.com/Downloads/MySQL-5.6/MySQL-client-5.6.23-1.el6.x86_64.rpm
#安装mysql
shell>rmp -ivh MySQL-server-5.6.23-1.el6.x86_64.rpm
shell>rpm -ivh MySQL-client-5.6.23-1.el6.x86_64.rpm
#重新启动mysql并用mysqladmin设置root密码
shell>service mysql restart
shell> mysqladmin -u root password "123456"
ps:
tnnd,到这步不行了,报错:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
解决:
#先停止mysql服务
shell>service mysql stop;
#采用安全方式登录
shell>mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
#然后输入命令mysql -u root mysql进去mysql提示符
mysql>update user set password=password('12345') where user='root';
mysql>flush privileges;
mysql>quit;
#重启mysql服务
shell>service mysql restart
#登录myesql
shell>mysql -uroot -p
尼玛装了3天的mysql终于貌似可以了,下一步写个jdbc连接下看看,先设置mysql允许远程登录:
#登录到mysql
shell>mysql -u root -p
#切换数据库
mysql>use mysql;
ps:晕,注意这里有肯提示你设置密码,那就设置一下好了
mysql>set password=password('123456');
#更改表:
mysql>update user set host='%' where host='localhsot';
mysql>quit;
#重启mysql
shell>service mysql restart;
ps:然后再一台windws机子是telnet了一下,即在cmd窗口中运行:telnet 192.168.100.240 3306,o了!!!
CentOS6.4x64安装mysql5.6.23(rpm)的更多相关文章
- CentOS6.5_64bit下编译安装MySQL-5.6.23
转载请注明出处:http://blog.csdn.net/guoyjoe/article/details/44785511 ************************************** ...
- CentOS6.5安装MySQL5.6
CentOS6.5安装MySQL5.6,开放防火墙3306端口,允许其他主机使用root账户密码访问MySQL数据库 查看操作系统相关信息 ** 该查看方法只适用于CentOS6.5 (lsb_rel ...
- centos6.5安装Mysql5.6及更改密码
(一) centos6.5安装Mysql5.6 二进制文件安装的方法分为两种: 第一种是不针对特定平台的通用安装方法,使用的二进制文件是后缀为.tar.gz的压缩文件: 第二种是使用RPM或其他包进行 ...
- Centos6.5安装MySQL5.6备忘记录
Centos6.5安装MySQL5.6 1. 查看系统状态 [root@itzhouq32 tools]# cat /etc/issue CentOS release 6.5 (Final) Kern ...
- CentOS6.5安装mysql5.7
CentOS6.5安装mysql5.7 查看mysql的安装路径: [root@bogon ~]# whereis mysql mysql: /usr/bin/mysql /usr/lib/mysql ...
- 第三百九十九节,Django+Xadmin打造上线标准的在线教育平台—生产环境部署CentOS6.5安装mysql5.6
第三百九十九节,Django+Xadmin打造上线标准的在线教育平台—生产环境部署CentOS6.5安装mysql5.6 1.检测系统是否已经安装过mysql或其依赖,若已装过要先将其删除,否则第4步 ...
- centos6.8安装mysql5.6【转】
首先先要去看看本机有没有默认的mysql, 本地默认有的,我们应先卸载,在安装新的这个逻辑. rpm -qa | grep mysql 我本机默认安装的mysql5.1.73 下一步删除 rpm -e ...
- centos6.6安装mysql5.7.6(采用MySQL Yum Repository)—(先看最后一行)
在centos6.6系统上采用MySQL Yum Repository安装mysql5.7.6: 帮助文档:http://dev.mysql.com/doc/refman/5.7/en/linux-i ...
- CentOS7安装mysql5.6.23
============安装glibc版本============== 一.下载glibc版本的Mysql mysql-advanced-5.6.23-linux-glibc2.5-x86_64.zi ...
随机推荐
- 一种针对虚拟机的应用软件License认证方法
由于虚拟机的硬件信息可以随意修改,使得虚拟机可能具有相同的硬件信息,在传统的应用软件License认证方式中会导致License认证漏洞.本专利提供了一种有效的解决方法. 文/王宏财 目 前,云计算的 ...
- Oracle 安装时候的网络相关内核参数
http://www.cnblogs.com/gaojian/archive/2012/10/12/2721284.html http://blog.chinaunix.net/uid-2442641 ...
- SGU 194 Reactor Cooling
http://acm.sgu.ru/problem.php?contest=0&problem=194 题意:m条有向边,有上下界,求最大流. 思路:原图中有u-v low[i],high[i ...
- MFC调用c#的dll
一.使用 /clr 编译 MFC 可执行文件或规则 DLL 1.打开“项目属性”对话框,方法是右键单击“解决方案资源管理器”中的项目并选择“属性”. 2.展开“配置属性”旁边的节点并选择“常规”.在右 ...
- ecshop 管理员不需要旧密码
- NoSQL 简介
NoSQL(NoSQL = Not Only SQL ),意即"不仅仅是SQL". 在现代的计算系统上每天网络上都会产生庞大的数据量. 这些数据有很大一部分是由关系数据库管理系统( ...
- 从零开始学C++之STL(七):剩下5种算法代码分析与使用示例(remove 、rotate 、sort、lower_bound、accumulate)
一.移除性算法 (remove) C++ Code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 ...
- kaggle之识别谷歌街景图片中的字母
https://github.com/lijingpeng/kaggle/tree/master/competitions/image_recognize 识别谷歌街景图片中的字母 street-vi ...
- ionic 图片轮播问题
1.使用ion-slide可以实现图片轮播,但是如果在html中仅仅增加ion-slide是远远不够的,会出现两个问题: (注:使用的是angularjs.首先需要在,js文件中注入:$ionicSl ...
- document.write 存在几个问题?应该注意
document.write (henceforth DW) does not work in XHTML XHTML 不支持 DW executed after the page has finis ...