Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#42807 closed defect (fixed)

mysql56 @5.6.16 error running mysql_install_db script

Reported by: joost.vandijk@… Owned by: pixilla (Bradley Giesbrecht)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: mysql56

Description

When running

sudo -u _mysql /opt/local/lib/mysql56/bin/mysql_install_db

according to instructions shown during a port install mysql56-server a warning is issued:

WARNING: Could not write to config file $basedir/etc/mysql56/my.cnf: No such file or directory

and a FATAL error is issued later on

This is due to an incorrect patch file: files/patch-scripts-mysql_install_db.pl.in.diff where I believe the line

+$config_file= '$basedir@SYSCONFDIR@/my.cnf';

should read

+$config_file= "$basedir@SYSCONFDIR@/my.cnf";

running OSX 10.9.2

Change History (4)

comment:2 Changed 7 years ago by ryandesign (Ryan Schmidt)

Cc: joost.vandijk@… removed
Keywords: mysql basedir mysql_install_db removed
Owner: changed from macports-tickets@… to pixilla@…

comment:3 Changed 7 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: newclosed

See r117939

comment:4 Changed 7 years ago by pixilla (Bradley Giesbrecht)

joost.vandijk: Thanks for the ticket and fix.

Note: See TracTickets for help on using tickets.