New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14600 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

MySQL5-server fixes

Reported by: paulbeard@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: jwa@…
Port: mysql5, mysql5-devel

Description

  1. It would help if permissions were set properly so MySQL could create its socket file in /opt/local/var/db/mysql5.
chown -R mysql:mysql /opt/local/var/db/mysql5

For whatever reason mysqld could create and write to a log file but couldn't create its socket file until I set the permissions.

  1. On line 42 of /opt/local/lib/mysql5/bin/mysql_secure_installation mysql should be mysql5.
     40 do_query() {
     41     echo $1 >$command
     42     mysql5 --defaults-file=$config <$command

Change History

comment:1 Changed 5 years ago by jmr@…

  • Owner changed from macports-tickets@… to ryandesign@…

Assigning to maintainer.

comment:2 Changed 5 years ago by ryandesign@…

  • Cc jwa@… added
  • Status changed from new to assigned
  • Port set to mysql5, mysql5-devel

The mysql_secure_installation issue has a duplicate #16531.

comment:3 Changed 5 years ago by ryandesign@…

The mysql_secure_installation issue has been fixed in r39951 (for mysql5) and r39952 (for mysql5-devel).

comment:4 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

comment:5 in reply to: ↑ description Changed 4 years ago by ryandesign@…

  • Status changed from assigned to closed
  • Resolution set to fixed

Replying to paulbeard@…:

  1. It would help if permissions were set properly so MySQL could create its socket file in /opt/local/var/db/mysql5.

I cannot explain why your /opt/local/var/db/mysql5 directory was not owned by mysql:mysql; it should be, since the mysql5 port has contained code to create the directory with that ownership since r13929.

Note that the socket file does not usually go there; the socket file is supposed to go in /opt/local/var/run/mysql5

Note: See TracTickets for help on using tickets.