2013年 5月 の投稿一覧

CentOS release 6.3にMySQL Server5.6をrpmでインストール

CentOS release 6.3にMySQL Server5.6をrpmでインストールメモ


HandlerSocket-Plugin-for-MySQLも使いたいとの要望もあったので、HandlerSocket-Plugin-for-MySQLもインストールしてみます。
MySQL5.6だからmemcached pluginを使えばいいのに。。。



[code language=”bash”]
yum install http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-server-5.6.11-2.el6.x86_64.rpm \
http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-client-5.6.11-2.el6.x86_64.rpm \
http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-shared-compat-5.6.11-2.el6.x86_64.rpm \
http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.6/MySQL-devel-5.6.11-2.el6.x86_64.rpm
[/code]



[code language=”bash”]
==================================================================================================
Package Arch Version Repository Size
==================================================================================================
Installing:
MySQL-client x86_64 5.6.11-2.el6 /MySQL-client-5.6.11-2.el6.x86_64 81 M
MySQL-devel x86_64 5.6.11-2.el6 /MySQL-devel-5.6.11-2.el6.x86_64 19 M
MySQL-server x86_64 5.6.11-2.el6 /MySQL-server-5.6.11-2.el6.x86_64 231 M
MySQL-shared-compat x86_64 5.6.11-2.el6 /MySQL-shared-compat-5.6.11-2.el6.x86_64 11 M
replacing mysql-libs.x86_64 5.1.67-1.el6_3
replacing mysql-libs.x86_64 5.1.67-1.el6_3

Transaction Summary
==================================================================================================
Install 4 Package(s)

Total size: 343 M
Is this ok [y/N]:
[/code]

Innodbプラグイン

[code language=”bash”]
mysql> select @@innodb_version;
+——————+
| @@innodb_version |
+——————+
| 5.6.11 |
+——————+
1 row in set (0.00 sec)

mysql>
[/code]

MySQL5.6がrpmでインストール完了しました。
下記にエラッた(自分の知識不足)を記載

ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: NO)

MySQL5.6からはrootのデフォルトパスワードが設定されるようになりました。

[code language=”bash”]
[root@hogehoge ~]# cat /root/.mysql_secret
# The random password set for the root user at Wed May 29 01:22:53 2013 (local time): DYdSZgeI
[/code]


MySQL5.6でmy.cnfの読み込み順序

MySQL5.6のヘルプに書いて有りました。

[code language=”bash”]
[root@hogehoge ~]# mysql –help | less
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf
The following groups are read: mysql client
The following options may be given as the first argument:
–print-defaults Print the program argument list and exit.
[/code]

MySQL5.6にアップデートしたら起動しない。。

my.cnfに廃止になったオプションがるよ、きっと。

[code language=”bash”]
default-character-set = utf8
[/code]


ERROR 1126 (HY000): Can’t open shared library ‘/usr/lib64/mysql/plugin/handlersocket.so’

MySQL5.6にhandlersocketインストール失敗。。解決できませんでした。

[code language=”bash”]
mysql> mysql> install plugin handlersocket soname ‘handlersocket.so’;

ERROR 1126 (HY000): Can’t open shared library ‘/usr/lib64/mysql/plugin/handlersocket.so’ (errno: 13 /usr/lib64/mysql/plugin/handlersocket.so: undefined symbol: _ZN4Item8get_dateEP13st_mysql_timej)
mysql>
[/code]