Bug 103669

Summary: mysql-server rc script can not use mysql_flags variable
Product: Ports & Packages Reporter: Chatchawan Wongsiriprasert <cws>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Chatchawan Wongsiriprasert 2006-09-26 09:40:24 UTC
Due to command line parameter order restriction of mysqld.
Setting mysql_flags in rc.conf cause an error (in mysql error log)

[ERROR] /usr/local/libexec/mysqld: unknown variable 'defaults-extra-file=/home/mysql/my.cnf

User must use mysql_args to set additional mysql parameters but  this method is differ from another port and may cause confuse to the user

Fix: Apply this patch to /usr/local/etc/rc.d/mysql-server
How-To-Repeat: stop mysqld
set mysql_flags in rc.conf such as mysql_flags=--bind-address=127.0.0.1
restart mysqld
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-09-26 11:42:18 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer
Comment 2 Felippe de Meirelles Motta freebsd_committer freebsd_triage 2008-05-29 17:44:35 UTC
Hi Submitter,

I think that this solution was implemented on mysql startup script,
right ?

-- 
lippe@FreeBSD.org
Felippe de Meirelles Motta
Comment 3 Alex Dupre freebsd_committer freebsd_triage 2010-11-10 16:56:14 UTC
State Changed
From-To: open->closed

Not a bug.