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