Bagdus,
When troubleshooting try to resolve first why your MySQL is not available:
[quote:7v0idk8b][05-Mar-2012 16:27:58] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't connect to MySQL server on 'mysql01.manitu.net' (4) in /Applications/MAMP/htdocs/mc.php on line 5[/quote:7v0idk8b]
You will find better answers on MAMP forum as the problem you are experiencing is specific to your environment. See this:
http://forum.mamp.info/search.php?keywo ... SQL+server
Also try to locate the error log for MySQL. See if you can run phpmyadmin to troubleshoot it. First see if MySQL is running at all. Error log should show you this. If you can not start it the problem will be with the config file most likely. If it starts but you can not connect then it could be a firewall or wrong credentials.
Maybe this will help you: http://blog-en.mamp.info/2009/09/how-to ... ithin.html