Install MySQL using yum in CentOS Linux

Source: Internet
Author: User

Note: To install MySQL using yum in CentOS Linux, you must install MySQL in a network environment. For more information about how to connect to the network in Linux, see the previous article!

Article 1: install and configure MySQL

Step 1: Install MySQL

[Root @ 192 local] # yum-y install mysql-server Plugin install MySQL

[Root @ 192 local] # yum-y install php-mysql plugin install php-mysql

Step 2: Configure MySQL

[Root @ 192 local] # vim/etc/my. cnf plugin edit the MySQL configuration file

[Mysqld]

Datadir =/var/lib/mysql

Socket =/var/lib/mysql. sock

# Default to using old password format for compatibility with mysql 3.x

# Clients (those using the mysqlclient10 compatibility package ).

Old_passwords = 1 encode find this line, add a new rule below this line, let MySQL's default code as UTF-8

Default-character-set = utf8 character add this line

Add the following statement at the end of the configuration file:

[Mysql]

Default-character-set = utf8

  • 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.