mysql - 选项文件不影响 MySQL 5.6 客户端
问题描述
我创建了一个选项文件 C:\my.ini
[mysqld]
basedir=C:\Program Files\MySQL\MySQL Server 5.6
datadir=C:\Program Files\MySQL\MySQL Server 5.6\data
innodb_buffer_pool_size=6710886400
innodb_file_per_table=ON
innodb_file_format=Barracuda
innodb_large_prefix=ON
local_infile=ON
我可以看到设置在mysqld.exe --help --verbose
.
但是,当我从 MySQL 客户端查询系统变量时,设置无效。
mysql> select
->
-> @@innodb_large_prefix as innodb_large_prefix,
-> @@innodb_file_format as innodb_file_format,
-> @@innodb_file_per_table as innodb_file_per_table,
-> @@local_infile as local_infile;
+---------------------+--------------------+-----------------------+--------------+
| innodb_large_prefix | innodb_file_format | innodb_file_per_table | local_infile |
+---------------------+--------------------+-----------------------+--------------+
| 0 | Antelope | 1 | 1 |
+---------------------+--------------------+-----------------------+--------------+
1 row in set (0.00 sec)
我在 Windows 10 上安装了 MySQL 5.6 作为 Windows 服务。
解决方案
推荐阅读
- java - 下面的类可以更好地泛化吗?
- android - PhoneGap Cordova 插件谷歌地图 - 插件未定义
- java - 将对象写入文件并读取它们
- mysql - Mysql安装错误(未满足的依赖项)
- python - 使用 Python 3.6 在 Mac High Sierra 上安装 PyGame
- mysql - Moodle 3.4 性能非常低
- python - 熊猫 - 连续的累计和
- c++ - 当静态转换为只移动类型时 Clang 与 GCC
- javascript - 在 map 函数中使用 Promise
- java - 如何使用开关从 sendbroadcast 中清除延迟的未接收传感器数据?