Install mysql under Fedora 7

Source: Internet
Author: User

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

  • 1
  • 2
  • Next Page
[Content navigation]
Page 1st: Install mysql under Fedora 7 Page 2nd: Install mysql under Fedora 7

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.