I’m trying to do a clean install of beta 5 on OS X and the installer keeps failing at the create/test your database step with "Checking database:Could not connect to the mysql server." (see screen shot)
Server Config:
OSX 10.5.8 (x86_64)
Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.7l DAV/2 PHP/5.3.0 (64 bit)
MySQL client version: mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $
MySQL server version: 5.1.36 (64 bit)
PDO - yes
memory_limit: 128MB
magic quotes off
php is the Entropy.ch 5.3.0-3 package - not the one apple ships
I’ve tried creating the db manually and using different mysql users (all privileges, all privileges on manually created db, & root) to no avail. This server currently has several versions of modx installed and working (0.9.x, 1.x, 2.0-b4).
-
MODX Staff
- 10,725 Posts
Sounds to me like this is an issue with mysqlnd and finding the MySQL socket file. Were all the others installed on this server using this exact configuration or was this updated recently?
I have no experience with the mysqlnd driver TBH, and do not recommend it yet. It does create some known compatibility issues for those upgrading to PHP 5.3 and choosing this new driver option.
Hello
I had a similar issue on a Linux/debian with MySQL 5.1.36 and mysqlInd as client version.
It’s a problem of socket, I resolved it just in specifying the ’pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock’ (not sure it’s the same on OSX) in my php.ini and all is fine now... Install runs normally, all is working like a charm.
Hope this helps !
cheers
How can I change that on shared server, without having access to php.ini?