Install mysql in Linux: Download the mysql source package and place it in/usr/local/src. Assume that my source package is: mysql.5.1.tar.gz create a user group and a user groupadd mysql // create a mysql user group useradd-g mysql // create a mysql account to start installation: 1. decompress the source package tar-zxvf mysql.5.1.tar.gz 2. Enter the package and install the software trilogy: configure, make, and make install. /configure -- prefix =/usr/local/mysql-with-charset = gbkmake clean; make) make install www.2cto.com 3, cp support-files/my-med Ium. cnf/etc/my. cnf // copy the my-medium.cnf file to the/etc/directory and rename it to my. cnf4. Open my in the editor. cnf file, find the log-bin = mysql-bin line, comment it out: # log-bin = mysql-bin5, enter the installation directory: bin/mysql_install_db -- user = mysql6. Set the directory permission chown-R root. // set the directory permission attribute chown-R mysql/usr/local/mysql/varchgrp-R mysql. bin/mysqld_safe -- user = mysql & // start mysql 7. Add/usr/local/mysql/bin to the environment variable. 8. Run mysql-uroot. If the logon succeeds, the installation is successful. Author: yuanzeyao2008