Приветствую.
Обновился с mysql 5.1 до mariadb 10.1 по инструкции: https://mariadb.com/resources/blog/upgrading-mysql-51-mariadb-100-centos-6 с mariadb 10.0 до 10.1 посредством: baseurl = http://yum.mariadb.org/10.1/centos6-amd64 yum update
При первом запуске выдало:
service mysql start Starting MySQL ERROR! Couldn't find MySQL server (/var/lib/mysql/bin/mysqld_safe)
Rem out the line in /etc/my.conf that was setting basedir to /var/lib. As seen below:
user=mysql #basedir=/var/lib
Step 2.)
Create the directory «/var/run/mysqld» if it does not exist. Then chown that directory to mysql.mysql as below...
mkdir /var/run/mysqld chown mysql.mysql /var/run/mysqld
Но походу сделал не правильно т.к:
[root~]# mysql -V
mysql: unknown variable 'datadir=/var/lib/mysql'
[root ~]# mysqld -V
mysqld Ver 10.0.28-MariaDB-wsrep for Linux on x86_64 (MariaDB Server, wsrep_25.16.rc3fc46e)
161112 17:01:46 [Note] mysqld (mysqld 10.0.28-MariaDB-wsrep) starting as process 3343 ...
[root]# service mysql restart
Shutting down MySQL..... SUCCESS!
Starting MySQL.161112 17:04:33 mysqld_safe unknown option '--err-log=/var/log/mysqld.log'
161112 17:04:33 mysqld_safe unknown option '--server-id=1'
161112 17:04:33 mysqld_safe unknown option '--innodb_data_home_dir=/var/lib/mysql'
161112 17:04:33 mysqld_safe unknown option '--innodb_data_file_path=ibdata1:10M:autoextend'
161112 17:04:33 mysqld_safe unknown option '--innodb_log_group_home_dir=/var/lib/mysql'
161112 17:04:33 mysqld_safe unknown option '--innodb_buffer_pool_size=200M'
161112 17:04:33 mysqld_safe unknown option '--innodb_additional_mem_pool_size=2M'
161112 17:04:33 mysqld_safe unknown option '--innodb_log_file_size=25M'
161112 17:04:33 mysqld_safe unknown option '--innodb_log_buffer_size=10M'
161112 17:04:33 mysqld_safe unknown option '--innodb_flush_log_at_trx_commit=1'
161112 17:04:33 mysqld_safe unknown option '--innodb_lock_wait_timeout=5'
161112 17:04:33 mysqld_safe Logging to '/var/lib/mysql/dstr.dedic.renter.ru.err'.
. SUCCESS!
Хз где как отрегулировать параметры my.cnf, т.к. не реагирует на изменение ни данный файл, ни файлы в папке /etc/my.cnf.d/.
Пожалуйста, помогите