1. Environment: Fedora, mysql-5.0.18.tar.gz
NOTE: If mysql has been installed during system installation, use rpm-e ******* -- nodeps to forcibly uninstall mysql.
2, enter the mysql folder decompression, # tar zxvf mysql-5.0.18.tar.gz,
Enter the decompressed Folder: [root @ fedora zhangyan] # cd mysql-5.0.18
Specify the installation path: [root @ fedora ~] #./Configure -- prefix =/usr/www/mysql
3. Compile and install the [root @ fedora mysql-5.0.18] # make
[Root @ fedora mysql-5.0.18] # make install
Note: This is a long process.
4. initialize the database
If you do not have mysql, add a # useradd mysql
[Root @ fedora mysql-5.0.18] # scripts/mysql_install_db
If no error is prompted, proceed to the next step.
5. Start mysql
[Root @ fedora mysql-5.0.18] #/usr/www/mysql/bin/mysqld_safe -- user = mysql &
If an error is prompted, change the permissions of the var folder under the/usr/www/mysq directory,
# Chmod 777-R var
Run the command again to start the instance successfully, as shown below:
[Root @ fedora mysql-5.0.18] #/usr/www/mysql/bin/mysqld_safe -- user = mysql &
All error causes can be found in the file with the. err extension under the var directory.
6. After initialization and installation, mysql has no password. Set the password to enter the bin directory.
[Root @ fedora bin] #./mysqladmin-u root password 123456
Set password to 123456
[Content navigation] |
Page 1st: Install mysql under Fedora 7 |
Page 2nd: Install mysql under Fedora 7 |