mysql 修改my.cnf 数据库启动不了_Mysql:my.cnf中的修改不生效

本文介绍了如何使用mysqld命令来查看MySQL服务器的实际配置及参数设置。通过运行特定命令,可以获取服务器使用的默认配置文件路径及各项参数的具体值。此外,还提供了运行中MySQL服务器参数查询的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

尝试运行mysqld --verbose --help以查看mysqld实际读取的配置文件以及使用的参数和值。

输出将如下所示:

mysqld Ver 5.0.51a-24-log for debian-linux-gnu on x86_64 ((Debian))

Copyright (C) 2000 MySQL AB, by Monty and others

This software comes with ABSOLUTELY NO WARRANTY. This is free software,

and you are welcome to modify and redistribute it under the GPL license

Default options are read from the following files in the given order:

/etc/mysql/my.cnf ~/.my.cnf /usr/etc/my.cnf

The following groups are read: mysql_cluster mysqld server mysqld-5.0

Variables (--variable-name=value)

and boolean options {FALSE|TRUE} Value (after reading options)

--------------------------------- -----------------------------

...

To see what values a running MySQL server is using, type

'mysqladmin variables' instead of 'mysqld --verbose --help'.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值