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

Unable to load custom cnf file #1081

Open
rohitsodhia opened this issue Aug 21, 2024 · 3 comments
Open

Unable to load custom cnf file #1081

rohitsodhia opened this issue Aug 21, 2024 · 3 comments

Comments

@rohitsodhia
Copy link

I'm struggling to set up a custom config file. I started on 8.3 (6f343283ab56) and just tried 8.4 (5c0b42e12aec).

I have the following cnf file:

[mysqld]
default_authentication_plugin = mysql_native_password
# query_cache_size=16M

# MY-013360 - mysql_native_password notice
log_error_suppression_list='MY-013360'

I mount it via compose as:

    volumes:
      - ./docker/mysql/my.cnf:/etc/mysql/conf.d/my.cnf

And when I ssh in, I can see the file. But when I run show global variables like 'log_error_suppression_list';, I get back an empty string, as well as still seeing the error in my logs.

I see !includedir /etc/mysql/conf.d/ in the /etc/my.cnf (though the docs say The default configuration for MySQL can be found in /etc/mysql/my.cnf).

@tianon
Copy link
Member

tianon commented Aug 21, 2024

Hmm, are there any warnings in your logs about MySQL ignoring your cnf file? I seem to recall it's picky about (unix filesystem) permissions on configuration files.

@rohitsodhia
Copy link
Author

You're right, I didn't notice

World-writable config file '/etc/mysql/conf.d/gp.cnf' is ignored.

Do you know what permissions I should set the file to?

@tianon
Copy link
Member

tianon commented Aug 22, 2024

Anything that doesn't have the word-writable bit should be fine; I think 644 or 664 are pretty standard.

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

2 participants