[MacPorts] #40606: mysql_secure_installation won't run w/o modifying PATH
#40606: mysql_secure_installation won't run w/o modifying PATH ---------------------------+-------------------------------- Reporter: clint.olsen@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: databases/mysql56 ---------------------------+-------------------------------- Normally when I install a port, my .profile is modified adding support for commands. When I tried to run the secure installation script, I got: {{{ $ /opt/local/lib/mysql56/bin/mysql_secure_installation Can't find a 'mysql' client in PATH or ./bin Cleaning up... Warning: Could not unlink .my.cnf.92844: No such file or directory Warning: Could not unlink .mysql.92844: No such file or directory }}} I had to print the contents of the port to find out what my PATH should be. After adding it, the script worked fine. -- Ticket URL: <https://trac.macports.org/ticket/40606> MacPorts <http://www.macports.org/> Ports system for OS X
#40606: mysql56: mysql_secure_installation won't run w/o modifying PATH ----------------------------+----------------------- Reporter: clint.olsen@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: mysql56 | ----------------------------+----------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => pixilla@… * cc: pixilla@…, openmaintainer@… (removed) * port: databases/mysql56 => mysql56 Comment: Replying to [ticket:40606 clint.olsen@…]:
Normally when I install a port, my .profile is modified adding support for commands.
The only time MacPorts modifies your .profile is when you initially install MacPorts. This is intentional. I would say that mysql_secure_installation and the other programs installed in /opt/local/lib/mysql56/bin should work without /opt/local/lib/mysql56/bin being in PATH. If they don't, that's a bug in the port, similar to #20949. It probably also affects mysql55, mysql51, mysql5, mariadb and percona. -- Ticket URL: <https://trac.macports.org/ticket/40606#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40606: mysql56: mysql_secure_installation won't run w/o modifying PATH ----------------------------+----------------------- Reporter: clint.olsen@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: mysql56 | ----------------------------+----------------------- Comment (by pixilla@…): The mysql_secure_installation script looks for mysql in ./bin and then PATH. Try this: {{{ cd /opt/local/lib/mysql56 sudo ./bin/mysql_secure_installation }}} -- Ticket URL: <https://trac.macports.org/ticket/40606#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40606: mysql56: mysql_secure_installation won't run w/o modifying PATH ----------------------------+----------------------- Reporter: clint.olsen@… | Owner: pixilla@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: mysql56 | ----------------------------+----------------------- Comment (by pixilla@…): Replying to [comment:2 pixilla@…]:
The mysql_secure_installation script looks for mysql in ./bin and then PATH. Try this: {{{ cd /opt/local/lib/mysql56 sudo ./bin/mysql_secure_installation }}} clint.olsen: Did this solution work for you?
-- Ticket URL: <https://trac.macports.org/ticket/40606#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40606: mysql56: mysql_secure_installation won't run w/o modifying PATH ----------------------------+----------------------- Reporter: clint.olsen@… | Owner: pixilla@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: Port: mysql56 | ----------------------------+----------------------- Changes (by pixilla@…): * status: new => closed * resolution: => fixed Comment: See r120590 -- Ticket URL: <https://trac.macports.org/ticket/40606#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts