Mysql Tuning.

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

azib
Posts: 29
Joined: Thu Mar 17, 2016 11:29 pm

Mysql Tuning.

Post by azib »

Dear Community,
I have installed cacti & during installation i faces some issues. Mysql tuning screen shot is attached. please guide, How do I fix these errors.

Regards'
Attachments
Cacti-Errors.PNG
Cacti-Errors.PNG (92.88 KiB) Viewed 4044 times
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Mysql Tuning.

Post by Osiris »

They go into the my.cnf file in /etc/. Take care to make a backup just in case you blow things up. Changing the character codes is not easy. Best to start with a fresh install. But if you are not using a foreign language, then they can stay latin.
Before history, there was a paradise, now dust.
azib
Posts: 29
Joined: Thu Mar 17, 2016 11:29 pm

Re: Mysql Tuning.

Post by azib »

It is a fresh install & I got these recommendations during installation. I have tried using edit my.cnf file but when I edit my.cnf file mysqld service will not be start.

Regards'
amazen123
Posts: 43
Joined: Wed Oct 26, 2016 3:30 am

Re: Mysql Tuning.

Post by amazen123 »

Can you post here the config on my.cnf?
azib
Posts: 29
Joined: Thu Mar 17, 2016 11:29 pm

Re: Mysql Tuning.

Post by azib »

Here is the output of my.cnf file.
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

Regards'
amazen123
Posts: 43
Joined: Wed Oct 26, 2016 3:30 am

Re: Mysql Tuning.

Post by amazen123 »

Just add all the red variable to your my.cnf and the value should be same with recommended value.

like this
[mysqld]
max_heap_table_size=49M
max_allowed_packet=16777216

After you edit the my.cnf restart your mariadb service.
azib
Posts: 29
Joined: Thu Mar 17, 2016 11:29 pm

Re: Mysql Tuning.

Post by azib »

Now I am getting Directory permission error. Screen shot is attached. Please review & guide accordingly.

Regards'
Attachments
Directory Permission.PNG
Directory Permission.PNG (56.98 KiB) Viewed 3828 times
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Mysql Tuning.

Post by phalek »

Did you read the text in that screenshot ? It tells you what to do right there ...
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
azib
Posts: 29
Joined: Thu Mar 17, 2016 11:29 pm

Re: Mysql Tuning.

Post by azib »

I read the text in the screen shot & perform the same step as suggested but still getting the same error.

Regards'
amazen123
Posts: 43
Joined: Wed Oct 26, 2016 3:30 am

Re: Mysql Tuning.

Post by amazen123 »

Does the /resource/snmp_queries has the same permission as /cacti/scripts?
azib
Posts: 29
Joined: Thu Mar 17, 2016 11:29 pm

Re: Mysql Tuning.

Post by azib »

It has the same permission as cacti/scripts. Screen shots are attached. Please review & guide.

Regards'
Attachments
Scripts-permission.PNG
Scripts-permission.PNG (34.9 KiB) Viewed 3719 times
Resource-permissoin.PNG
Resource-permissoin.PNG (6.62 KiB) Viewed 3719 times
amazen123
Posts: 43
Joined: Wed Oct 26, 2016 3:30 am

Re: Mysql Tuning.

Post by amazen123 »

Hmmm that's weird, the permission is correct so I don't know why it gives error that it's not writable.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Mysql Tuning.

Post by cigamit »

Is SELinux enabled?
Sumdzik
Posts: 10
Joined: Sun Nov 08, 2009 1:02 pm
Location: Poland

Re: Mysql Tuning.

Post by Sumdzik »

I had the same problem. Disabling SELinux (setenforce 0) helped.
ghie11
Posts: 7
Joined: Tue Jul 18, 2017 1:52 am

Re: Mysql Tuning.

Post by ghie11 »

I had the same problem on my mysql tuning, i have tried using this config..but i got error on my cacti database
Attachments
11.jpg
11.jpg (1.61 MiB) Viewed 3372 times
Last edited by ghie11 on Tue Jul 18, 2017 9:23 pm, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests