Ticket #14600 (closed defect: fixed)
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
- 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.
- 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: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:5 in reply to: ↑ description Changed 4 years ago by ryandesign@…
- Status changed from assigned to closed
- Resolution set to fixed
Replying to paulbeard@…:
- 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.


Assigning to maintainer.