Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Don't read my.cfn config file by default (MySQL) #193

Closed
tomislater opened this issue Sep 16, 2016 · 3 comments
Closed

Don't read my.cfn config file by default (MySQL) #193

tomislater opened this issue Sep 16, 2016 · 3 comments

Comments

@tomislater
Copy link
Contributor

It might be difficult to debug what is going on, so I propose to use --no-defaults flag in mysqld_safe command (https://github.com/ClearcodeHQ/pytest-dbfixtures/blob/master/src/pytest_dbfixtures/factories/mysql.py#L121). Maybe it is not the best approach to resolve this problem.

Another idea in my head: provide a flag --defaults-file? and use a file from this param. If user does not use this flag, use --no-defaults flag.

From documentation (http://dev.mysql.com/doc/refman/5.6/en/mysqld-safe.html#option_mysqld_safe_defaults-file):

--no-defaults
Do not read any option files. This must be the first option on the command line if it is used.

@fizyk
Copy link
Member

fizyk commented Sep 16, 2016

Actually being able to set all possible values for fixture, would be much better, and we would impose this separation from my.cnf file completely.

@fizyk
Copy link
Member

fizyk commented Sep 16, 2016

However this would be blocked by #160

@fizyk
Copy link
Member

fizyk commented Nov 14, 2016

This issue was moved to ClearcodeHQ/pytest-mysql#8

@fizyk fizyk closed this as completed Nov 14, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants