mysql标准安装

cpp 代码
  1. shell> groupadd mysql   
  2. shell> useradd -g mysql mysql   
  3. shell> tar zxvf mysql-VERSION.tar.gz   
  4. shell> cd mysql-VERSION   
  5. shell> ./configure --prefix=/usr/local/mysql   
  6. shell> make   
  7. shell> make install   
  8. shell> cp support-files/my-medium.cnf /etc/my.cnf   
  9. shell> cd /usr/local/mysql   
  10. shell> bin/mysql_install_db --user=mysql   
  11. shell> chown -R root  .   
  12. shell> chown -R mysql var   
  13. shell> chgrp -R mysql .   
  14. shell> bin/mysqld_safe --user=mysql &  

你可能感兴趣的:(数据库相关)