CentOS7 installing MySQL

Source: Internet
Author: User

Centos7 installing MySQL

Because I am a pure Linux small white, on their own computer with VMware installed CENTOS7 began my bitter road,

See other people to install a what WordPress what, really is envious, so I want to make a try

So find tutorials online, probably the idea is to install mysql--nginx--php, who knows when installing MySQL encountered the first problem, according to the online tutorial # yum-y install MySQL mysql-server wait. When you are done,

Second command #/ETC/INIT.D/MYSQLD start

BASH:/etc/init.d/mysqld: no file or directory

And then # CD/ETC/INIT.D #ll did not have this file

Enter MySQL prompt directly

ERROR 2002 (HY000): Can ' t connect to local MySQL server through socket '/varql/mysql.sock ' (2)

Continue searching for tutorials online.

said that Centos7 gave up MySQL and used mariadb (a branch of MySQL, other specific also do not know)

# yum-y Install mariadb*

Wait for ing .....

And then

#systemctl Start mariadb

#systemctl Enable MARIADB


#mysql can do it.




It's a bad writing.

CentOS7 installing MySQL

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.