Install the MARIADB step under Centos6.6 and install the second article with Yum

Source: Internet
Author: User

First, the installation process reference related articles:

Centos installs mariadb with Yum

CentOS Installation and Setup mariadb

CentOS installs and configures mariadb with Yum

MARIADB Remote Connection Configuration

ERROR 1045 (28000): Access denied for user ' root ' @ ' localhost ' (using Password:no)

Installing MARIADB with Yum (official documentation)

Second, set the connection rules

1. Login MARIADB

#mysql-U-root-p

2. Set up the database

> Use MySQL

3. Configure Connection Rules

> Grant all privileges on * * to ' root ' @ '% ' identified by ' passwd ' with GRANT OPTION;

This means that the root account can be used in any location to connect

If you want to specify the IP, modify the following (IP is 192.168.1.120 machine can be connected):

GRANT all privileges on * * to ' root ' @ ' 192.168.1.120 ' identified by ' passwd ' with GRANT OPTION;

4. Save changes

> Flush Privileges;

>quit

Third, set the database case is not sensitive, the database code is UTF-8

After logging in with the root account, the/etc/my.cnf.d/server.cnf file

Under [Mysqld], add the following content.

Character_set_server=utf8
Lower_case_table_names=1

Four, restart MariaDB

#service MySQL Restart

Install the MARIADB step under Centos6.6 and install the second article with Yum

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.