Page 1 of 1

RUMped, Leopard, MySQL and MAMP

Posted: Mon 3. Mar 2008, 18:01
by DL2RUM
Hi folks,

LĂ©once, FM5DN uses the MAMP package http://www.mamp.info/en/index.php for the MySQL server. There are some advantages and some disadvantages as well. MAMP is very easy to install and could be your first choice when trying out RUMped.
Under Leopard, there are now some issues with this error message: "Can't connect to local MySQL server throught socket /tmp/mysql.sock(2)" During investigation it was found out, that Leopard was making the trouble because the mysql.sock default location was changed. That means, you can run into the same trouble even when using other MySQL installations and also with other applications which using MySQL as well. It is not a RUMped problem. There is a simple solution: Do not use 'localhost' as hostname, use 127.0.0.1 instead!
LogIn.tiff
LogIn.tiff (19.75 KiB) Viewed 4391 times
LogIn.tiff
LogIn.tiff (19.75 KiB) Viewed 4391 times
The screen shoot was taken using the MAMP as server. Please note the different port setting. The default password in the MAMP installation is 'root'

Re: RUMped, Leopard, MySQL and MAMP

Posted: Sun 27. Apr 2008, 23:12
by K6LE
Thanks for the tip about MAMP.

Got it working right away and finally can play with RUMped.

Can't wait for the next contest!

Re: RUMped, Leopard, MySQL and MAMP

Posted: Tue 30. Sep 2008, 20:27
by N9RLi
Even when doing that, you might get an issue is you're using MAMP. If you installed the latest MAMP, and you're using 127.0.0.1 you'll get an error saying "lost connection to mysql server during query". To solve this the easiest way...you'll need to open a terminal (applications, utilities, terminal) and type:

Code: Select all

sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock
This will create a link from /tmp/mysql.sock to /Applications/MAMP/tmp/mysql/mysql.sock. If I'm not mistaken, RUMped assumes that the socket mysql is in /tmp. I hope this helps.

Edit: The result of running the command above is that you could use localhost as the server, meaning there is no need for 127.0.0.1...