I have already installed MySQL in a Server (Centos 7) by the following commands:yum install -y mysqlyum install -y mysql-serveryum install -y mysql-develAfter the installation, I type mysql and meet the errorERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)I think it is because I didn't started the MySQL service yet, so I type the commandservice mysqld startThen I get the message said that Job for mariadb.service failed Here is the content of /etc/my.cnf [mysqld]datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.socksymbolic-links=0[mysqld_safe]log-error=/var/log/mariadb/mariadb.logpid-file=/var/run/mariadb/mariadb.pidHowever, the file /var/lib/mysql/mysql.sock is not existed in my server. BTW, SELINUX is disabled manually.mariadb.log shows InnoDB: Error: log file ./ib_logfile0 is of different size 0 50331648 bytesInnoDB: than specified in the .cnf file 0 5242880 bytes!InnoDB: Possible causes for this error:   (a) Incorrect log file is used or log file size is changed   (b) In case default size is used this log file is from 10.0   (c) Log file is corrupted or there was not enough disk space   In case (b) you need to set innodb_log_file_size = 48M[ERROR] Plugin 'InnoDB' init function returned error.[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGIN failed.[ERROR] Unknown/unsupported storage engine: innodb[ERROR] Aborting
Cann't start MySQL on my Linux server with Centos 7 OS
centos;mysql