-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DSN not being referenced as a variable and is set literally later in the script. #22
Comments
@surfrock66 hello! Modern perl style (can we even use such a word to describe a perl style?) assumes that you are using If you have problems connecting to the database, it is better to check all the settings. |
There is, however, a small inconvenience in the script. If you have any problems running the script on modern systems, try editing the socket path. |
You don't need to specify the socket path in a special way. The This code is quite sufficient: Perhaps on older systems there were problems with finding the socket, but modern libraries use the settings in config files like |
That's fair, and I'm not a perl expert; I just thought editing the entries at the top with the "my" definition would be enough, but I ended up just commenting out where they're set lower and that worked. |
In this version of the script:
https://raw.githubusercontent.com/OpensourceICTSolutions/zabbix-mysql-partitioning-perl/5f3e78ee90b1f18cc00099f3a3deda45eb9f76bd/mysql_zbx_part.pl
the $dsn can be declared on line 12, however on lines 37 and 48 they are manually re-declared, wiping out a config set at the front. This seems like it is in error.
The text was updated successfully, but these errors were encountered: