• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Can't modify my.cnf file

J

juanchi

Guest
This is my actual my.cnf file:

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

Then I tried to include this three lines:

set-variable = interactive_timeout = 120
set-variable = wait_timeout = 120
set-variable = max_connections = 200

Like this:

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
set-variable = interactive_timeout = 120
set-variable = wait_timeout = 120
set-variable = max_connections = 200


[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

But when I restart mysqld service the conection to the database is broken, I can't log to the plesk control panel.

This is part of my mysqld.log file:

050327 22:07:27 /usr/libexec/mysqld: unknown variable 'interactive_timeout = 120'

050327 22:07:27 mysqld ended

050327 22:07:29 mysqld started
050327 22:07:29 /usr/libexec/mysqld: unknown variable 'interactive_timeout = 120'

050327 22:07:29 mysqld ended

050327 22:08:11 mysqld started
050327 22:08:11 /usr/libexec/mysqld: unknown variable 'interactive_timeout = 120'

050327 22:08:11 mysqld ended

050327 22:09:03 mysqld started
050327 22:09:04 InnoDB: Started
/usr/libexec/mysqld: ready for connections.
Version: '4.0.22' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
050327 22:09:06 /usr/libexec/mysqld: Normal shutdown

050327 22:09:06 InnoDB: Starting shutdown...
A mysqld process already exists at Sun Mar 27 22:09:06 EST 2005
050327 22:09:08 InnoDB: Shutdown completed
050327 22:09:08 /usr/libexec/mysqld: Shutdown Complete

050327 22:09:08 mysqld ended

050327 22:10:54 mysqld started
050327 22:10:54 InnoDB: Started
/usr/libexec/mysqld: ready for connections.
Version: '4.0.22' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
050327 22:10:56 /usr/libexec/mysqld: Normal shutdown

050327 22:10:56 InnoDB: Starting shutdown...
A mysqld process already exists at Sun Mar 27 22:10:56 EST 2005
050327 22:10:58 InnoDB: Shutdown completed
050327 22:10:58 /usr/libexec/mysqld: Shutdown Complete

050327 22:10:58 mysqld ended

050327 22:12:11 mysqld started

If I reverse this changes everything works fine again, I don't know what I'm doing wrong, I used both pico and nano.
 
Back
Top