Skip to content
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

can't modify the log-error path #34

Closed
gdnico opened this issue Oct 16, 2018 · 7 comments
Closed

can't modify the log-error path #34

gdnico opened this issue Oct 16, 2018 · 7 comments

Comments

@gdnico
Copy link

gdnico commented Oct 16, 2018

Hello,

I would like to send the log error in an other directory that /var/lib/mysql. But i can't change the value

Regards
Nicolas

@thaylin
Copy link

thaylin commented Oct 20, 2018

Have you tried adding it to override_options? such as :

override_options => {
mysqld => {
'log-error' => '/var/log/mariadb/mariadb.log',
}
}

@gdnico
Copy link
Author

gdnico commented Oct 22, 2018

Hi
That's work
You can close the issue.
Thank you

@gdnico gdnico closed this as completed Oct 22, 2018
@gdnico
Copy link
Author

gdnico commented Oct 22, 2018 via email

@gdnico
Copy link
Author

gdnico commented Oct 22, 2018 via email

@thaylin
Copy link

thaylin commented Oct 23, 2018

override_options => {
client => {
'socket' => '/var/run/mysql/mysql.sock',
},
mysqld => {
'bind-address' => '0.0.0.0',
'datadir' => '/mysql_data',
'pid-file' => '/var/run/mysql/mysql.pid',
'socket' => '/var/run/mysql/mysql.sock',
'innodb_log_file_size' => '4G',
'max_allowed_packet' => '1G',
'character-set-server' => 'utf8',
'collation-server' => 'utf8_bin',
'general_log' => 'on',
'general_log_file' => '/var/log/mariadb/query.log',
'log-error' => '/var/log/mariadb/mariadb.log',
'open-files-limit' => '500000',
'max_connection' => '1000',
'innodb_buffer_pool_size' => '8589934592',
'innodb_flush_method' => 'O_DSYNC',
'ssl-ca' => '/etc/mysql-ssl/ca-cert.pem',
'ssl-cert' => '/etc/mysql-ssl/server-cert.pem',
'ssl-key' => '/etc/mysql-ssl/server-key.pem',
},"

it is really just taking hash key=>value pairs and putting them in there...

As for the yaml, that is listed on the main page:

mariadb::cluster::override_options:
mysqld:
performance_schema: OFF
innodb_file_per_table: OFF

So you could take the above for instance and do:

mariadb::cluster::override_options:
mysqld:
performance_schema: OFF
innodb_file_per_table: OFF
ssl-ca: '/etc/mysql-ssl/ca-cert.pem'
ssl-cert: '/etc/mysql-ssl/server-cert.pem'
ssl-key: '/etc/mysql-ssl/server-key.pem'

I have not tested the yaml portion yet.

@edestecd
Copy link
Owner

@gdnico are you doing a cluster or just server?
I can get you one of our profiles if you like, which sets up ssl for the cluster or stand alone server. Which do you want?

@gdnico
Copy link
Author

gdnico commented Oct 23, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants