Install MySQL Server

Source: Internet
Author: User

Configure Mysql:


1. Install mysql in the specified directory and use the source code package.

[Root @ localhost media] # tar-zxvf mysql-5.0.56.tar.gz-C/usr/src/

Mysql-5.0.56/win/data/mysql/time_zone.frm

Mysql-5.0.56/win/data/mysql/time_zone.MYI

Mysql-5.0.56/win/data/mysql/time_zone.MYD

Mysql-5.0.56/win/data/mysql/time_zone_transition.frm

Mysql-5.0.56/win/data/mysql/time_zone_transition.MYI

Mysql-5.0.56/win/data/mysql/time_zone_transition.MYD

Mysql-5.0.56/win/data/mysql/time_zone_transition_type.frm

Mysql-5.0.56/win/data/mysql/time_zone_transition_type.MYI

Mysql-5.0.56/win/data/mysql/time_zone_transition_type.MYD

Mysql-5.0.56/win/data/mysql/time_zone_leap_second.frm

Mysql-5.0.56/win/data/mysql/time_zone_leap_second.MYI

Mysql-5.0.56/win/data/mysql/time_zone_leap_second.MYD

Mysql-5.0.56/win/data/mysql/proc. frm

Mysql-5.0.56/win/data/mysql/proc. MYI

Mysql-5.0.56/win/data/mysql/proc. MYD

Mysql-5.0.56/win/data/mysql/procs_priv.frm

Mysql-5.0.56/win/data/mysql/procs_priv.MYI

Mysql-5.0.56/win/data/mysql/procs_priv.MYD

Mysql-5.0.56/win/data/test/

 


2. Configure, compile, and install the Mysql service. (It takes a long time to compile and install the Mysql service. Please wait patiently)

 


[Root @ localhost/] # cd/usr/src/mysql-5.0.56/

[Root @ localhost mysql-5.0.56] #./configure -- prefix =/usr/local/mysql & make install

 


Make [4]: Nothing to be done for 'Install-data-am '.

Make [4]: Leaving directory '/usr/src/mysql-5.0.56/server-tools/instance-manager'

Make [3]: Leaving directory '/usr/src/mysql-5.0.56/server-tools/instance-manager'

Make [3]: Entering directory '/usr/src/mysql-5.0.56/server-tools'

Make [4]: Entering directory '/usr/src/mysql-5.0.56/server-tools'

Make [4]: Nothing to be done for 'Install-exec-am '.

Make [4]: Nothing to be done for 'Install-data-am '.

Make [4]: Leaving directory '/usr/src/mysql-5.0.56/server-tools'

Make [3]: Leaving directory '/usr/src/mysql-5.0.56/server-tools'

Make [2]: Leaving directory '/usr/src/mysql-5.0.56/server-tools'

Make [1]: Leaving directory '/usr/src/mysql-5.0.56'

Compiled successfully

 


3. Create a system user and group running Mysql

 


[Root @ localhost mysql-5.0.56] # useradd-M-s/sbin/nologin mysql

 


4. Create a configuration file

 


[Root @ localhost mysql-5.0.56] # cp support-files/my-medium.cnf/etc/my. cnf

  • 1
  • 2
  • Next Page

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.