[MacPorts] #73974: mysql8 8.4.8 Port notes lack crucial macports-specific steps before start server

MacPorts noreply at macports.org
Tue May 5 16:52:37 UTC 2026


#73974: mysql8 8.4.8 Port notes lack crucial macports-specific steps before start
server
-------------------------+--------------------
 Reporter:  robcd        |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:  mysql8
-------------------------+--------------------
 §2.2 of the Mysql reference manual has generic instructions, but being
 spoon-fed the following would have saved me a lot of time spent
 investigating socket-file-related errors.

 {{{
   ~ % cd /opt/local/var/run
 run % sudo mkdir mysql8
 run % sudo chown mysql mysql8
 }}}

 Then do the following (based on §2.2), to initialise the data directory,
 and start the server:

 {{{
 run % cd ../db
  db % sudo mkdir mysql8-files
  db % sudo chown mysql:mysql mysql8-files
  db % sudo chmod 750 mysql8-files
  db % sudo mysqld --initialize --user=mysql
  db % sudo mysqld_safe --user=mysql
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/73974>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list