---
title: 'CakePHP on OSX: Problem using Bake.php script'
url: 'https://maxwesten.nl/blog/articles/cakephp-on-osx-problem-using-bakephp-script'
markdown: 'https://maxwesten.nl/blog/articles/cakephp-on-osx-problem-using-bakephp-script.md'
date: '2007-05-08'
description: 'If you are getting the following errors while trying to bake something on osx 10.4: Warnin'
taxonomy:
  category:
    - OSX
    - PHP
  tag:
    - CakePHP
    - OSX
    - PHP
    - Terminal
  archives_month:
    - may_2007
  archives_year:
    - '2007'
---

# CakePHP on OSX: Problem using Bake.php script

[Home](https://maxwesten.nl/)  [Blog](https://maxwesten.nl/blog)  [Articles](https://maxwesten.nl/blog/articles)  CakePHP on OSX: Problem using Bake.php script 

## [ CakePHP on OSX: Problem using Bake.php script](https://maxwesten.nl/blog/articles/cakephp-on-osx-problem-using-bakephp-script)

    8th May 2007   [CakePHP](https://maxwesten.nl/tag:CakePHP#body-wrapper) [OSX](https://maxwesten.nl/tag:OSX#body-wrapper) [PHP](https://maxwesten.nl/tag:PHP#body-wrapper) [Terminal](https://maxwesten.nl/tag:Terminal#body-wrapper)  

If you are getting the following errors while trying to bake something on osx 10.4:

```bash
Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/mysql/mysql.sock' (2) in /Library/WebServer/Documents/development/bakery/cake/libs/model/dbo/dbo_mysql.php
on line 117
```

try doing the following:

```bash
sudo ln -s /tmp /var/mysql
```

Or you could follow the instruction given by Apple: [Mac OS X Server 10.4: Issues connecting PHP to MySQL](http://docs.info.apple.com/article.html?artnum=301457)

 [ Previous Article](https://maxwesten.nl/blog/articles/cakephp-central-cake-core-install-with-multiple-apps) [Next Article ](https://maxwesten.nl/blog/articles/birth-of-lisa-westen)

#### Related Posts

- 100 

     [Easiest local development environment on OSX](https://maxwesten.nl/blog/articles/easiest-local-development-environment-on-osx "Easiest local development environment on OSX")
- 100 

     [Setting up MockSMTP on OSX 10.7(Lion) for local PHP development](https://maxwesten.nl/blog/articles/setting-up-mocksmtp-on-osx-10-7lion-for-local-php-development "Setting up MockSMTP on OSX 10.7(Lion) for local PHP development")
- 100 

     [Mod\_security settings for Wordpress 3.x](https://maxwesten.nl/blog/articles/mod_security-settings-for-wordpress-3-x "Mod_security settings for Wordpress 3.x")
- 100 

     [Developing in PHP with NetBeans 6.8](https://maxwesten.nl/blog/articles/developing-in-php-with-netbeans "Developing in PHP with NetBeans 6.8")
- 100 

     [Installing xDebug 2.0.4 or 2.1 on OSX](https://maxwesten.nl/blog/articles/installing-xdebug-204-or-21-on-osx "Installing xDebug 2.0.4 or 2.1 on OSX")

[←](https://xn--sr8hvo.ws/%F0%9F%92%95%F0%9F%8E%89%E2%A4%B5%EF%B8%8F/previous)An IndieWeb Webring 🕸💍 [→](https://xn--sr8hvo.ws/%F0%9F%92%95%F0%9F%8E%89%E2%A4%B5%EF%B8%8F/next)

---

## Navigation

- Parent: [Articles](https://maxwesten.nl/blog/articles.md)
- Previous: [Birth of Lisa Westen](https://maxwesten.nl/blog/articles/birth-of-lisa-westen.md)
- Next: [CakePHP: Central cake core install with multiple apps](https://maxwesten.nl/blog/articles/cakephp-central-cake-core-install-with-multiple-apps.md)
