This might help some people overcome the MySQL connection error when installing October.
Edit the file './install_files/php/Installer.php'. Find the line:
$dsn = 'mysql:host='.$host.';dbname='.$name;'
around line 136, and edit it to read:
$dsn = 'mysql:unix_socket='.$host.';dbname='.$name;
The host specified by 1and1 is "localhost:/tmp/mysql5.sock" However, as PDO is being used you need to enter "/tmp/mysql5.sock"
The MySQL installation should then succeed.
As ever: IANAL, YMMV
Edit: Of course if you then get a "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known" error and there are no forum entries and the web is unhelpful, you may just want to give up!
Shame looks like a good CMS but if I can't get it installed ...
Last updated