VestaCP - Как заменить mysql на mariadb

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Самые выгодные сервера‎ в рунете


VestaCP - Как заменить mysql на mariadb

Пример для CentOS 6 - 64 bit

# service mysqld stop && yum remove mysql*
# cat /etc/yum.repos.d/mariadb.repo

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1


# yum install -y MariaDB-server MariaDB-client MariaDB-devel && cp /etc/my.cnf.rpmsave /etc/my.cnf
# service mysql restart
Shutting down MySQL. SUCCESS!
Starting MySQL.. SUCCESS!
# yum install --disablerepo=* --enablerepo=remi phpmyadmin


Внести небольшие изменения:

# vi /etc/httpd/conf.d/phpMyAdmin.conf
<Directory /usr/share/phpMyAdmin/>
  AddDefaultCharset UTF-8
  <IfModule mod_authz_core.c>
    # Apache 2.4
    Require local
  </IfModule>
  <IfModule !mod_authz_core.c>
    # Apache 2.2
    Order Deny,Allow
    Allow from all
    Allow from ::1
  </IfModule>
</Directory>
# /etc/init.d/httpd restart