Opened 10 years ago

Closed 7 years ago

#43690 closed defect (fixed)

sudo: mysql_install_db5: command not found

Reported by: jtjennings@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: wiki Version:
Keywords: Cc: cooljeanius (Eric Gallager)
Port: mysql5

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Trying to Install MacPorts MAMP: Followed the steps with my old Mac a few years ago with out issue. wiki:howto/MAMP

Now I am getting errors:

When I execute this Command

~ sudo port install mysql5-server]

I got the following errors

Error: org.macports.build for port mysql5 returned: command execution failed
Error: Failed to install mysql5
Please see the log file for port mysql5 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/main.log
Error: The following dependencies were not installed: mysql5
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port mysql5-server failed

I reviewed and determined that I need to run

~ sudo port install mysql55-server

and it installed.

The next step fails with both options:

Option 1)

sudo -u mysql mysql_install_db5

Error Message

sudo: mysql_install_db5: command not found

I also tried

~ sudo -u mysql mysql_install_db55

Got the same error

Option 2)

sudo mysql_install_db5

Error Message

sudo: mysql_install_db5: command not found

I also Tried

~ sudo mysql_install_db55

Error Massage

sudo: mysql_install_db55: command not found

Change History (9)

comment:1 Changed 10 years ago by jtjennings@…

Trying to Install MacPorts MAMP: Followed the steps with my old Mac a few years ago with out issue. ​wiki:howto/MAMP

Now I am getting errors:

When I execute this Command

~ sudo port install mysql5-server

I got the following errors

Error: org.macports.build for port mysql5 returned: command execution failed Error: Failed to install mysql5 Please see the log file for port mysql5 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mysql5/mysql5/main.log
Error: The following dependencies were not installed: mysql5 To report a bug, follow the instructions in the guide:
​http://guide.macports.org/#project.tickets
Error: Processing of port mysql5-server failed

I reviewed and determined that I need to run

~ sudo port install mysql55-server 

and it installed.

The next step fails with both options:
Option 1)

sudo -u mysql mysql_install_db5

Error Message

 sudo: mysql_install_db5: command not found 

I also tried

~ sudo -u mysql mysql_install_db55 

Got the same error

Option 2)

sudo mysql_install_db5

Error Message

sudo: mysql_install_db5: command not found 

I also Tried

~ sudo mysql_install_db55 

Error Massage

sudo: mysql_install_db55: command not found 
Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 10 years ago by cooljeanius (Eric Gallager)

The mysql5 port is old and has been deprecated; it looks like that guide will have to be updated to reflect that...

comment:3 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:4 in reply to:  2 ; Changed 10 years ago by jtjennings@…

Replying to egall@…:

The mysql5 port is old and has been deprecated; it looks like that guide will have to be updated to reflect that...

Yea, I kind of guessed that and figured out the 1st part

sudo port install mysql55-server  

but now I am stuck at the next step. not sure what to change on the other command is needed.

Last edited 10 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 10 years ago by mf2k (Frank Schima)

Component: portswiki
Priority: HighNormal
Version: 2.2.1

The Priority field is for use by Macports team members only.

comment:6 in reply to:  4 Changed 10 years ago by cooljeanius (Eric Gallager)

started updating the guide: wiki:howto/MAMP?action=diff&version=68

Replying to jtjennings@…:

Replying to egall@…:

The mysql5 port is old and has been deprecated; it looks like that guide will have to be updated to reflect that...

Yea, I kind of guessed that and figured out the 1st part

sudo port install mysql55-server  

but now I am stuck at the next step. not sure what to change on the other command is needed.

The newer mysql ports use the port select mechanism, so the "other command" will not be in your path by default unless you either run port select or add the port's directory for its binaries to your PATH.

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

The MAMP guide should be updated. In the mean time check out the notes for mysql55-server:

$ port notes mysql55-server
Last edited 10 years ago by pixilla (Bradley Giesbrecht) (previous) (diff)

comment:8 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Port: mysql5 added

comment:9 Changed 7 years ago by raimue (Rainer Müller)

Resolution: fixed
Status: newclosed

Instructions for MySQL were moved to howto/MySQL.

Note: See TracTickets for help on using tickets.