码迷,mamicode.com
首页 > 数据库 > 详细

centos6.5安装mysql5.5

时间:2014-08-16 03:19:19      阅读:254      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   os   ar   art   html   linux   

http://blog.csdn.net/huangjianxiang1875/article/details/33320557

cmkae

http://www.cmake.org/cmake/resources/software.html

wget http://mirrors.sohu.com/mysql/MySQL-5.5/mysql-5.5.38.tar.gz

wget http://www.cmake.org/files/v2.8/cmake-2.8.12.2-Linux-i386.tar.gz

 

 

4.配置

cd /usr/local/mysql/

cp ./support-files/my-huge.cnf /etc/my.cnf  

vi /etc/my.cnf     

 

服务器启动

  mysql安装目录 /usr/local/mysql

  在安装目录下执行

  ./bin/mysqld_safe --user=root

更改root密码
  bin/mysql -u root mysql 

  在mysql shell中执行

  UPDATE user SET Password=PASSWORD(‘root‘) WHERE user=‘root‘; 

  FLUSH PRIVILEGES;

 

进入mysql客户端

  bin/mysql -u root -p

服务器关闭

  ./bin/mysqladmin shutdown -u root -p

 

centos6.5安装mysql5.5,布布扣,bubuko.com

centos6.5安装mysql5.5

标签:style   blog   http   os   ar   art   html   linux   

原文地址:http://www.cnblogs.com/huiwq1990/p/3915940.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!