LoginSignup
0
0

More than 5 years have passed since last update.

osclassでmariadb使ってたら日本語化したときにカテゴリ一覧が英語のまま

Last updated at Posted at 2016-02-23

環境

  • OS - centos7.2 (Vagrantでbento/centos-7.2)
  • SELinux - permissive
  • apache - 2.4.6
  • php - 5.4.16
    • php-gd
    • php-mbstring
    • php-mysql
    • php-pdo
  • osclass - 3.6.1

事象

この環境でDBをmariadb使ってインストール、日本語化したところ

MariaDB. Language of categories doesn't change

こちらと同じ事象が発生してカテゴリ一覧が英語のままになります。

対処

いくつかの対処法が考えられますが、

Why is ORDER BY in a FROM Subquery Ignored?

で案内されているとおりSQLを書き換えてosclass本家に取り込んで頂くのが正しい姿かと思います。
が、今の私には敷居が高いですので、とりあえず mysqlを入れることで回避しました。

ansible的には

yum: name=http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm state=present

して

yum: name=mysql-community-server state=present enablerepo=mysql56-community disablerepo=mysql57-community

mysql5.7だとrootのパスワードなしなど適当な設定でサクッとつかえなかったので5.6に。

試してませんが、日本語しか使わないからーって場合は、日本語化した後に、英語を削除したらmariadbのまま動きそうな予感がします。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0