Администратор MySQL в CloudLinux 7
Форум
  1. Forums
  2. General
  3. General Discussion
  1. Christof Bruyland
  2. Tuesday, 04 August 2015
  3.  Subscribe via email
I want to run MySQL governor on CloudLinux with the OS provided MariaDB packages.
I\'m running the following commands:
yum install -y governor-mysql
This installed version 1.0-96
/usr/share/lve/dbgovernor/db-select-mysql --mysql-version=auto
/usr/share/lve/dbgovernor/mysqlgovernor.py --install
This will result in a failed installation of cl-MariaDB packages, because of conflicts with mariadb-libs (used by postfix).
After troubleshooting, I\'ve detected that the [bold]/usr/share/lve/dbgovernor/utils/db_install_common.sh[bold] script is still trying to install mysql* packages and not mariadb* packages.

With following patch I managed to install the OS specific packages:
*** /usr/share/lve/dbgovernor/utils/db_install_common.orig.sh	2015-07-10 13:03:21.000000000 +0200
--- /usr/share/lve/dbgovernor/utils/db_install_common.sh 2015-08-04 11:30:50.633006443 +0200
***************
*** 49,55 ****
if [ -e /usr/libexec/mysqld ]; then
mv -f /usr/libexec/mysqld /usr/libexec/mysqld.bak
fi
! yum install mysql mysql-server mysql-libs mysql-devel mysql-bench --nogpgcheck -y
fi
if [ \"$SQL_VERSION\" == \"mysql50\" ]; then
wget -O /etc/yum.repos.d/cl-mysql.repo http://repo.cloudlinux.com/other/$CL/mysqlmeta/cl-mysql-5.0-common.repo
--- 49,55 ----
if [ -e /usr/libexec/mysqld ]; then
mv -f /usr/libexec/mysqld /usr/libexec/mysqld.bak
fi
! yum install mariadb mariadb-server mariadb-libs mariadb-devel mariadb-bench --nogpgcheck -y
fi
if [ \"$SQL_VERSION\" == \"mysql50\" ]; then
wget -O /etc/yum.repos.d/cl-mysql.repo http://repo.cloudlinux.com/other/$CL/mysqlmeta/cl-mysql-5.0-common.repo
***************
*** 139,145 ****
if [ -e /usr/libexec/mysqld ]; then
mv -f /usr/libexec/mysqld /usr/libexec/mysqld.bak
fi
! yum install mysql mysql-server mysql-libs mysql-devel mysql-bench --nogpgcheck -y --enablerepo=cloudlinux-updates-testing
fi
if [ \"$SQL_VERSION\" == \"mysql50\" ]; then
wget -O /etc/yum.repos.d/cl-mysql.repo http://repo.cloudlinux.com/other/$CL/mysqlmeta/cl-mysql-5.0-common.repo
--- 139,145 ----
if [ -e /usr/libexec/mysqld ]; then
mv -f /usr/libexec/mysqld /usr/libexec/mysqld.bak
fi
! yum install mysql mariadb-server mariadb-libs mariadb-devel mariadb-bench --nogpgcheck -y --enablerepo=cloudlinux-updates-testing
fi
if [ \"$SQL_VERSION\" == \"mysql50\" ]; then
wget -O /etc/yum.repos.d/cl-mysql.repo http://repo.cloudlinux.com/other/$CL/mysqlmeta/cl-mysql-5.0-common.repo
Could it be possible to verify this, and update the governor-mysql package if needed?
Rate this post:
  1. 07.08.2015 09:08:48
  2. # 1
Alexey Berezhok Accepted Answer
Posts: 35
Joined: 20.04.2010
0
Votes
Undo
Hello,

here is fixed version of governor for CL7:

[url]http://www.cloudlinux.com/blog/clnews/beta-mysql-governor-updated1234.php[/url]
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
гость
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.