Opened 14 years ago

Last modified 7 years ago

#24956 closed defect

Having trouble installing mysql — at Version 4

Reported by: samii@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: wiki Version:
Keywords: Cc: ryandesign@…
Port: php5

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

Hi:

I have started the process of installing MAMP as per the instructions on the MacPorts wiki howto for MAMP on howto/MAMP

I had no problems through the beginning of Step 3: Install MySQL. The port install worked seamlessly.

However, setting up the database was very silent (no feedback what so ever).

The autostart seems to work, and grep filtering for mysql processes seems to indicate mysql is running no problem.

But when I try to set the root password, I get the following error.

mysqladmin5: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/opt/local/var/run/mysql5/mysqld.sock' exists!

Likewise, when I try to log into the server, it says:

Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (2)

I am running Mac OS X 10.6.3
2.4 GHz Intel Core 2 Duo
3 GB Ram

Not sure how to proceed.

Change History (4)

comment:1 Changed 14 years ago by samii@…

Cc: samii@… added

Cc Me!

comment:2 Changed 14 years ago by samii@…

OK, well, I resolved that problem. I had to kill the mysql processes that were active and start them up again.

Now, I tried installing php5 following the same instructions. No errors reported, but when I try to load phpinfo.php, it doesn't work. It just loads the document as a text file in the browser window.

comment:3 Changed 14 years ago by jmroot (Joshua Root)

Cc: samii@… removed
Component: portswiki
Port: php5 added; mysql removed
Priority: HighNormal
Version: 1.8.2

comment:4 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)

Then that's a separate issue.

Have you added this line to your httpd.conf and restarted Apache?

Include conf/extra/mod_php.conf
Note: See TracTickets for help on using tickets.