首页 > 代码库 > centos6.5安装mysql5.5

centos6.5安装mysql5.5

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