How to install MySQL database in CentOS

Source: Internet
Author: User
Tags mysql functions

When talking about the website architecture, we often see the saying "LAMP", which is "Linux + Apache + MySQL + PHP ". There have been many successful cases of MySQL + PHP collaboration. For example, PHPBB, VBB, domestic Discuz! Forums and other programs are implemented using PHP + MySQL. Compared with dedicated commercial databases, MySQL functions and scale may be inferior to those described by many people, but for us, its functions are complete. Besides, Discuz! The number of concurrent online users on the official forum can also prove the stability of MySQL.

Here, we will introduce how to build a MySQL database server in CentOS.

Install MySQL and related components

First, install MySQL.

[Root @ sample ~] # Yum-y install mysql-server Plugin install MySQL

Setting up Install Process
Setting up repositories
Dag 100% | =================================| 1.1 kB
Update 100% | =================================| 951 B
Base 100% | =================================| 1.1 kB
Addons 100% | =============================| 951 B
Extras 100% | =============================| 1.1 kB
Reading repository metadata in from local files
Primary.xml.gz 100% | =======================| 106 kB
Update: ######################################## ######## 261/261
Added 5 new packages, deleted 0 old in 2.02 seconds
Cing Dag RPM Repository for Red Hat Enterprise Linux to supported ded packages only
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for mysql-server to pack into transaction set.
Mysql-server-4.1.20-1.RHE 100% | =================================| 29 kB
---> Package mysql-server.i386. 1.20-1. RHEL4.1 set to be updated
--> Running transaction check
--> Processing Dependency: libmysqlclient. so.14 (libmysqlclient_14) for package: mysql-server
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server
--> Processing Dependency: perl-DBI for package: mysql-server
--> Processing Dependency: perl (DBI) for package: mysql-server
--> Processing Dependency: mysql = 4.1.20-1. RHEL4.1 for package: mysql-server
--> Processing Dependency: libmysqlclient. so.14 for package: mysql-server
--> Processing Dependency: libmysqlclient_r.so.14 (libmysqlclient_14) for package: mysql-server
--> Processing Dependency: libmysqlclient_r.so.14 for package: mysql-server
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl-DBD-MySQL to pack into transaction set.
Perl-DBD-MySQL-2.9004-3.1 100% | =================================| 5.4 kB
---> Package perl-DBD-MySQL.i386. 9004-3.1 set to be updated
---> Downloading header for mysql to pack into transaction set.
Mysql-4.1.20-1.RHEL4.1.i3 100% | =================================| 35 kB
---> Package mysql. i386. 1.20-1. RHEL4.1 set to be updated
---> Downloading header for perl-DBI to pack into transaction set.
Perl-DBI-1.40-8.i386.rpm 100% | =================================| 11 kB
---> Package perl-DBI.i386. 40-8 set to be updated
--> Running transaction check
Dependencies Resolved

========================================================== ============================================
Package Arch Version Repository Size
========================================================== ============================================
Installing:
Mysql-server i386 4.1.20-1. RHEL4.1 update 9.8 M
Installing for dependencies:
Mysql i386 4.1.20-1. RHEL4.1 update 2.9 M
Perl-DBD-MySQL i386 2.9004-3.1 base 111 k
Perl-DBI i386 1.40-8 base 466 k

Transaction Summary
========================================================== ============================================
Install 4 Package (s)
Update 0 Package (s)
Remove 0 Package (s)
Total download size: 13 M
Downloading Packages:
(1/4): perl-DBD-MySQL-2.9 100% | =========================| 111 kB
(2/4): mysql-server-4.1.2 100% | =========================| 9.8 MB
(3/4): mysql-4.1.20-1.RHE 100% | =========================| 2.9 MB
(4/4): perl-DBI-1.40-8.i3 100% |=========================| 466 kB
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: perl-DBI ######################### [1/4]
Installing: mysql ####################### [2/4]
Installing: perl-DBD-MySQL ######################### [3/4]
Installing: mysql-server ######################## [4/4]

Installed: mysql-server.i386. 1.20-1. RHEL4.1
Dependency Installed: mysql. i386. 1.20-1. RHEL4.1 perl-DBD-MySQL.i386. 9004-3.1 perl-DBI.i386. 40-8
Complete!

  • 5 pages in total:
  • Previous Page
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next Page

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.