again me- here some more infos:
running a server and yes mysql is installed.
running PHP Version 5.6.39
mysqlnd 5.0.11-dev - 20120503
Code:
mysqli.default_host localhost localhost
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket /var/run/mysql/mysql.sock /var/run/mysql/mysql.sock
hmmm - i currently wonder why it does not work
here
some more findings: : the folks / and user that face the same issue with the mentioned survey script as i do - they have posted some ideas and findings - food for thought:
cf:
www.limesurvey.org/forum/installation-a-...-sqlstate-hy000-2002
klaus said: I run LimeSurvey on Linux for a few years now. After a reboot, probably an update, lime does not start anymore. I get the error
Code:
CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] No such file or directory
Following my research I looked for the connectionstring in the config.php and found:
Code:
'connectionString' => 'mysql:unix_socket=/usr/local/LimeSurvey/var/LimeSurvey_mysqld.sock;dbname=limesurvey;',
So I looked for the
Code:
/usr/local/LimeSurvey/var/LimeSurvey_mysqld.sock
file but it was not there. Further research results: change the connectionString to:
Code:
'connectionString' => 'mysql:host=127.0.0.1;unix_socket=/usr/local/LimeSurvey/var/LimeSurvey_mysqld.sock;dbname=limesurvey;',
...change the connectionString to:
Code:
'connectionString' => 'mysql:host=127.0.0.1;unix_socket=/usr/local/LimeSurvey/var/LimeSurvey_mysqld.sock;dbname=limesurvey;',
and this following idea:
Code:
Try
'connectionString' =>'mysql:host=localhost;port=3306;dbname=limesurvey;',
Are you sure DB still active mysql are on the same server?
I was able to fix it. The error showed that /tmp/mysql.sock was missing so I created a symbolic link with this command.
Code:
ln -s /usr/local/lib/mysql.sock /tmp/mysql.sock
see the tread for more infos:
www.limesurvey.org/forum/installation-a-...-sqlstate-hy000-2002
conclusio: do you think that i have to do some corrections in the paths and the paths to socket!?
any idea how to check things !? Look forward to hear from you +
regards