MySQL Variables shared_memory_base_name 数据库 参数变量解释及正确配置使用


本站中文解释

shared_memory_base_name参数用于设置MySQL服务器与其他应用程序之间共享内存的名称。它是一个全局变量,可以已Lib_mysqludbc.dll或dll此模式加载。

这个参数的默认值为MYSQL,可以通过在my.cnf中以下语句进行修改:
sharded_memory_base_name=MySharedMemory

修改后, 在共享内存方式连接时,MySQL就会使用MySharedMemory作为共享内存的名称了。

官方英文解释

shared_memory_base_name

Command-Line Format--shared-memory-base-name=name
System Variableshared_memory_base_name
ScopeGlobal
DynamicNo
Platform SpecificWindows
TypeString
Default ValueMYSQL

(Windows only.) The name of shared memory to use for
shared-memory connections. This is useful when running
multiple MySQL instances on a single physical machine. The
default name is MYSQL. The name is
case-sensitive.

This variable applies only if the server is started with the
shared_memory system variable
enabled to support shared-memory connections.