linux里的mysql源码安装

安装依赖

yum -y install perl perl-devel autoconf

参考博客:http://www.cnblogs.com/bookwed/p/5896619.html

初始化设置密码

 mysql -u root
 mysql > SET PASSWORD FOR  'root'@'localhost' = PASSWORD("root");
mysql -u root
  mysql> use mysql;
  mysql> UPDATE user SET Password = PASSWORD('newpass') WHERE user = 'root';
  mysql> FLUSH PRIVILEGES;

你可能感兴趣的:(Linux基础)