我们没有使用操作系统控制台访问服务器的权限。我们的生产环境是Ubuntu 12,可以使用来自远程主机的mysqltuner吗?如果是,请提供指导方针。我们正在使用mysql5.6
发布于 2015-03-14 19:09:39
我将要向您展示的内容来自mysqltuner.pl代码的第89-122行:
您仍然需要像mysql客户端那样进行连接:
Connection and Authentication
--host <hostname> Connect to a remote host to perform tests (default: localhost)
--socket <socket> Use a different socket for a local connection
--port <port> Port to use for connection (default: 3306)
--user <username> Username to use for authentication
--pass <password> Password to use for authentication由于您使用的是远程主机,请使用参数从操作系统提供值。
--forcemem <size> Amount of RAM installed in megabytes
--forceswap <size> Amount of swap memory configured in megabytes您可能需要与远程SysAdmin联系,询问您有多少内存和交换。
如果数据库有太多的表或非常大的表,请使用以下命令:
--skipsize Don't enumerate tables and their types/sizes (default: on)
(Recommended for servers with many tables)https://dba.stackexchange.com/questions/95286
复制相似问题