ローカルのRails開発でデータベースにVagrant内で立ち上げたMySQL(5.7.19)を使用しているのですが、my.cnfの設定を以下のようにして再起動させても反映されません。どこか見落としているところがあるのでしょうか、ご教示いただきたいです。
/etc/my.cnf
shell
1[mysqld] 2default-storage-engine=InnoDB 3 4ft_min_word_len=2 5innodb_ft_min_token_size=2
mysql
1mysql> show variables like 'ft_min_word_len'; 2+-----------------+-------+ 3| Variable_name | Value | 4+-----------------+-------+ 5| ft_min_word_len | 4 | 6+-----------------+-------+ 71 row in set (0.00 sec) 8 9mysql> show variables like 'innodb_ft_min_token_size'; 10+--------------------------+-------+ 11| Variable_name | Value | 12+--------------------------+-------+ 13| innodb_ft_min_token_size | 3 | 14+--------------------------+-------+ 151 row in set (0.00 sec) 16
[vagrant@localhost ~]$ mysql --help | grep my.cnf order of preference, my.cnf, $MYSQL_TCP_PORT, /etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf # /etc/my.cnfしか存在しない
回答5件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。