mysql-error-2002

Can't connect to '/var/run/mysqld/mysqld.sock'

ぃ、小莉子 提交于 2020-01-02 09:28:26
问题 This is my first post here, so I hope I do everything right and don't forget any important info. I'm glad for any hints, because I'm running out of ideas (if I ever had any ;)). I am (or was) running owncloud on Raspbian Jessie (so I guess basically Debian). Suddenly owncloud stopped working. The nginx error points towards php5-fpm, further searches gave this error: exception 'Doctrine\DBAL\DBALException' with message 'Failed to connect to the database: An exception occured in driver:

CakePHP: No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)

一世执手 提交于 2019-12-18 12:23:11
问题 I have had a cakephp app running fine on my local machine (mac osx) for a while and then suddently I realise that I can't connect to mysql.sock. I'm getting this error: Warning (2): mysql_connect() [http://php.net/function.mysql-connect]: [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) [CORE/cake/libs/model/datasources/dbo/dbo_mysql.php, line 540] The line 540 of dbo_mysql.php reads: $this->connection = mysql_connect($config['host'] . ':' . $config['port'

MySQL - Mac - Error 2002 - Can't connect to local… through socket

三世轮回 提交于 2019-12-01 18:58:56
I had MySQL running fine on my Mac till earlier today when I installed homebrew and also updated my Path. When I try to run mysql from my ternimal window now, I get the following error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) I can't connect MySQLAdmin either. I can't even run Mysqld. The error I get when trying to run mysqld is that it can't create test file. I also tried to telnet localhost 3306 and wasn't able to connect. Any help would be appreciated as I am fairly new to Mac. Basically, all you have to do is: Go to "System Preferences"

MySQL - Mac - Error 2002 - Can't connect to local… through socket

我只是一个虾纸丫 提交于 2019-12-01 17:16:42
问题 I had MySQL running fine on my Mac till earlier today when I installed homebrew and also updated my Path. When I try to run mysql from my ternimal window now, I get the following error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) I can't connect MySQLAdmin either. I can't even run Mysqld. The error I get when trying to run mysqld is that it can't create test file. I also tried to telnet localhost 3306 and wasn't able to connect. Any help would

Can't connect to MySQL on Mac — missing mysql.sock file

爷,独闯天下 提交于 2019-11-29 02:12:05
I installed MySQL on my Mac OS 10.6 about a week ago, and, after some playing around, got it to work just fine. It integrated with python MySQLdb and I also got Sequel Pro to connect to the database. However, php wouldn't access the server. Even after I added a php.ini file to /etc/ and directed it toward the same sock that Sequel Pro was using: /tmp/mysql.sock. But now I can't access the local server at all. As far as I can tell, there is no mysql.sock file anywhere on my computer, not in /tmp/ or anywhere else. I can start the mysql server from Terminal, but it logs me out automatically

connect to local MySQL server through socket

試著忘記壹切 提交于 2019-11-27 21:33:49
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) I tried everything I found on internet, but cannot solve the problem on Ubuntu 11.04. I tried these things: started mysqld manually using sudo /usr/sbin/mysqld start started mysqld using service mysqld start Checked it is running using ps ax | grep mysqld and got result 3419 pts/0 S+ 0:00 grep --color=auto mysqld created the file manually at /var/run/mysqld/mysqld.sock Gave rights to mysql user Tried to remove and re-install but it still do not work Tried tasksel to configure LAMP, every

How to Solve the XAMPP 1.7.7 - PHPMyAdmin - MySQL Error #2002 in Ubuntu

回眸只為那壹抹淺笑 提交于 2019-11-27 19:06:01
I have been through lots of forums and checked various posts on similar topic but non seems to work out for me. I have freshly installed XAMPP 1.7.7 on my Ubuntu 11.10 Operating system. Everything is running except for the phpMyAdmin. Upon hitting: http://localhost/phpmyadmin , I am getting the following error: MySQL said: #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) Connection for controluser as defined in your configuration failed. When i am starting the services with: sudo /opt/lampp/lampp start I am getting the following: XAMPP:

Can't connect to MySQL on Mac — missing mysql.sock file

风流意气都作罢 提交于 2019-11-27 16:32:19
问题 I installed MySQL on my Mac OS 10.6 about a week ago, and, after some playing around, got it to work just fine. It integrated with python MySQLdb and I also got Sequel Pro to connect to the database. However, php wouldn't access the server. Even after I added a php.ini file to /etc/ and directed it toward the same sock that Sequel Pro was using: /tmp/mysql.sock. But now I can't access the local server at all. As far as I can tell, there is no mysql.sock file anywhere on my computer, not in

connect to local MySQL server through socket

为君一笑 提交于 2019-11-26 20:42:40
问题 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) I tried everything I found on internet, but cannot solve the problem on Ubuntu 11.04. I tried these things: started mysqld manually using sudo /usr/sbin/mysqld start started mysqld using service mysqld start Checked it is running using ps ax | grep mysqld and got result 3419 pts/0 S+ 0:00 grep --color=auto mysqld created the file manually at /var/run/mysqld/mysqld.sock Gave rights to mysql

How to Solve the XAMPP 1.7.7 - PHPMyAdmin - MySQL Error #2002 in Ubuntu

淺唱寂寞╮ 提交于 2019-11-26 19:44:37
问题 I have been through lots of forums and checked various posts on similar topic but non seems to work out for me. I have freshly installed XAMPP 1.7.7 on my Ubuntu 11.10 Operating system. Everything is running except for the phpMyAdmin. Upon hitting: http://localhost/phpmyadmin, I am getting the following error: MySQL said: #2002 - The server is not responding (or the local MySQL server's socket is not correctly configured) Connection for controluser as defined in your configuration failed.