Debian9 installing MySQL MARIADB

Source: Internet
Author: User
Tags access database

Debian9 MySQL replaced by mariadb-server-10.1

But they are similar.

"MySQL and mariadb differences"

http://ask.chinaunix.net/question/556

After the father of MySQL Widenius left Sun, he felt that relying on sun/oracle to develop MySQL is very unreliable, so decided to open another branch, the name of this branch is called MARIADB.

。。。。。

So for the majority of MySQL users, from the current mainstream MySQL to MARIADB should be no difficulty

1 su switch to root account

Apt-get Install Mysql-server

Shown below (Prompt to run the installation command again after installation is complete)

# apt-get Install MySQL
Reading Package Lists ... Done
Building Dependency Tree
Reading state information ... Done

MySQL is the Debian mariadb installation success

2 Turn on server Remote ping Server IP discovery can ping

But cannot log in mariadb this is because remote access is not turned on

The default path/ETC/MYSQL/MARIADB.CONF.D open 50-server.cnf

Will

# Instead of skip-networking The default is now-listen only on
# localhost which are more compatible and are not less secure.
bind-address= 127.0.0.1

Revision changed to

# Instead of skip-networking The default is now-listen only on
# localhost which are more compatible and are not less secure.
#bind-address= 127.0.0.1

Save the document server with root privileges to identify connections other than 127.0.0.1

3 Enter the server to open remote account access

Under MySQL, enter grant all privileges on *. * to ' root ' @ '% ' identified by ' Rootpassword ' with GRANT option;

Open the account for the remote Access database.

4 Remote Access Yes, I'm using Navicat.

Follow the prompts to set the connection properties

Debian9 installing MySQL mariadb

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.