MySQL error installing Drupal
Ryan Schmidt
ryandesign at macports.org
Wed Jan 13 13:39:11 PST 2010
On Jan 13, 2010, at 15:12, Jasper Frumau wrote:
> Well I am still getting:
>
> Warning: mysql_connect() [function.mysql-connect]: [2002] No such file or directory (trying to connect via unix:///tmp/mysql.sock) in /Library/WebServer/Documents/drupal-6.15/connect-test.php on line 2
>
> Warning: mysql_connect() [function.mysql-connect]: No such file or directory in /Library/WebServer/Documents/drupal-6.15/connect-test.php on line 2
> Could not connect: No such file or directory
>
> Even though php.ini has been adjusted:
>
> my-macbook-pro:etc jasper$ cat php.ini | grep mysql.sock
> pdo_mysql.default_socket = /opt/local/var/run/mysql5/mysql.sock
> mysql.default_socket = /opt/local/var/run/mysql5/mysql.sock
> mysqli.default_socket = /opt/local/var/run/mysql5/mysql.sock
>
> and
>
> my-macbook-pro:mysql5 jasper$ cd /opt/local/var/run/mysql5/
> my-macbook-pro:mysql5 jasper$ ls
> mysqld.sock
>
>
> I wonder what else I am missing...
Which PHP is your web server using -- Apple or MacPorts?
Which PHP are you using on the command line -- Apple or MacPorts?
I have a feeling you're using a different PHP on the command line than you're using in your web server.
Which Apache web server are you using -- Apple or MacPorts?
More information about the macports-users
mailing list