ERROR 2002 (HY000): Can't Connect To Local MySQL Server Through Socket '/var/lib/mysql/mysql.sock' (13)
I have a problem connecting to sql and can't find anything on the net to solve the problem.
I have some sql databases running on a server. when I'm root on the server and I want to login to sql I do "mysql -ustudent -p -Dwordnet30 and it works fine. when I'm logged in with the user account on the server, i get this error message:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
so with the same user name in mysql, i can log on when i'm root, but not when i'm the user. the grant table for the user looks like this: Code:
View Complete Forum Thread with Replies
Related Forum Messages:
ERROR 2002: Can't Connect To Local MySQL Server Through Socket
i get this when i do '/etc/rc.d/rc.mysql start' ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2) ive had a look on google, and the problem for most people seems to be permissions, but im running as root, and the socket doesn't exist. It doesn't create the socket when it runs, because i tried putting mysql in the root user group. i do have a script that clears the /tmp on login, but i dont think that would affect it,
View Replies !
Error 2002: Cant Connect To Local MySQL Server Through Socket
Well that's the error I'm getting when trying to connect to my MySQL database, more specifically: Error 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) I know the PHP is fine because it's a straight copy and paste from a site I wrote before that's working fine (on the same host as well no less), anyway I did a bit of Googling and all the results that came up said that it's a configuration issue and can be resolved in several ways (mysql daemon, the my.cnf file etc etc) only problem is I'm on a shared hosting service so I don't have access to this. Does anyone know of any other potential cause to this problem other than configuration issues or is it just a call up the host deal?
View Replies !
Can't Connect To Local MySQL Server Through Socket '/home/data/mysql/mysql.sock' (13)
I just installed mysql on linux. If I open a terminal, su to root, then type "mysql", I am able to connect to the server and run my queries. If I exit out of su so that I am my own id (baisley) and type "mysql", I get this error: Can't connect to local MySQL server through socket '/home/data/mysql/mysql.sock' (13) Any idea why? mysql.sock has full permissions (read/write/execute), so it should be accessable by user baisley. If I am baisley and I run "mysql -u mysql" (as mysql is the user that the RPM set up), it will connect. What I would like to be able to do is run this without having to be user mysql all the time. How do I go about setting that up, or is it better to run all my queries/make tables as 1 user?
View Replies !
Warning: Mysql_query(): Can't Connect To Local MySQL Server Through Socket '/tmp/mysql.sock' (2)
I'm trying to connect to my MySQL database (sitehosted by GoDaddy) using PHP. I am having these errors and don't understand what they mean Warning: mysql_query(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/n/l/a/nladmin/html/v5.0_3/c_register.php on line 6 Warning: mysql_query(): A link to the server could not be established in /home/content/n/l/a/nladmin/html/v5.0_3/c_register.php on line 6 Notice: Query: SELECT * FROM types MySQL error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/n/l/a/nladmin/html/v5.0_3/c_register.php on line 6 here4 Warning: mysql_close(): no MySQL-Link resource supplied in /home/content/n/l/a/nladmin/html/v5.0_3/c_register.php on line 13 I've checked paths and connection settings and don't see any problems. My guess is now that the problem is coming from the opening and closing of the DB. my script, c_register.php uses a require_once('../mysql_connect.php') to open the connection to the database. But I also have a function definition in c_register.php that uses require_once('../mysql_connect.php') when called because it needs a connection to the DB. Here's a visual that might help:
View Replies !
Can't Connect To Local MySQL Server Through Socket '/tmp/mysql.sock'
I've installed MySQL-4.0.14 under RedHat 8, using both rpm's and compiling from source. When I try to run MySQL, I get the following error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' After much searching on Google, and reading many newsgroup threads on this error, as well as reading the manual, I'm still stumped. Most of the advice I've found suggests that the path to mysql.sock is wrong, which makes sense, but I don't have the file mysql.sock anywhere on my machine, so obviously I can't correct the path.
View Replies !
Can't Connect To Local MySQL Server Through Socket '/tmp/mysql.sock' (2)
I am using a Mac running Mac OS X 10.4.8 and I have successfully installed MySQL on it but when I go to run it using the command sudo ./bin/mysqld_safe & all it does is display a random dumber and when I try the command ./bin/mysqlshow -u root -p I get an error message saying Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
View Replies !
Can't Connect To Local MySQL Server Through Socket '/var/lib/mysql/mysql.sock' (11)
We run Bitrix CMS and upon installing the web statistics module, it will sometimes show this error: Error! mysql_connect('-', '-', '-') Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) The max connections has been raised to a 1000... and SHOW GLOBAL STATUS says for the maxed used connections: Max_used_connections 273 The server does not really max out...
View Replies !
MySQL-error : Can't Connect To Local Mysql Server Through Socket
On a freshly installed Fedora C3 (incl. webserver apache php mysql) i get the following problem when connecting to mysql through a browser (phpMyAdmin):: #2002 Can't connect to local MySQL server through socket /var/lib/mysql/mysql.sock On the website of MySQL this error is mentioned but I found no solution. In /var/log/messages the following log occurs : localhost kernel: audit(....): avc: denied {write}for pid=2458 exe=/usr/sbin/httpd name=mysql.sock dev=hda13 ... What I have tried : - mysql.sock is srwxrwxrwx, seems ok, but dont know what the s stands for - the dir /var/lib/mysql was drwxr-xr-x and I changed it to drwxrwxrwx : no effect - tried different version of phpMyAdmin : same error - installed my website and got the following error : No connection possible with database (in the next version I will improve the error-messages) - through commandline there is no problem in connecting to mysql (log in, create databases, inserts, deletes, uploading dumps, making dumps, ....) What is the solution or what else can I try ?
View Replies !
Can't Connect To Local MySQL Server Through Socket
I am running ubuntu 8.10 with mysql server 5.0.67ubuntu6. When I try to login locally I get the following error: glen@glen-laptop:~$ mysql -u root -p Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) glen@glen-laptop:~$ It looks like the mysql daemon is not running. When I try to run it I get the following error: glen@glen-laptop:~$ sudo /etc/init.d/mysql restart [sudo] password for glen: * Stopping MySQL database server mysqld [ OK ] * Starting MySQL database server mysqld [fail] glen@glen-laptop:~$ I use to have this working fine. But I have somehow managed to break it. I have tried purging mysql and re installing it but I still get the error?
View Replies !
Phpmyadmin :: Cant Connect To Local Mysql Server Through Socket
i have recently installed & config'd mysql all seems to be fine with command line, however i have installed phpmyadmin and keep getting complaints about 'cant connect to local mysql server through socket /..blah/..blah' i have checked the php.ini file and everything seems to be in order i have been using webmin with no complaints, but would prefer to use phpmyadmin.
View Replies !
Another ERROR 2003 (HY000): Can't Connect To MySQL Server On 'example.com' (110)
Here's some information about my system: [root@imt etc]# uname -a Linux imt.com 2.6.27.12-78.2.8.fc9.i686 #1 SMP Mon Jan 19 20:14:35 EST 2009 i686 i686 i386 GNU/Linux [root@imt etc]# /sbin/service --status-all ***** ip6tables: Firewall is not running. iptables: Firewall is not running. irattach is stopped irqbalance is stopped ***** [root@imt etc]# cat my.cnf [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock skip-innodb max_connections = 500 key_buffer = 16M myisam_sort_buffer_size = 64M join_buffer_size = 1M read_buffer_size = 1M sort_buffer_size = 2M table_cache = 1024 thread_cache_size = 64 wait_timeout = 1800 connect_timeout = 10 max_allowed_packet = 16M max_connect_errors = 10 query_cache_limit = 1M query_cache_size = 32M query_cache_type = 1 [mysqld_safe] err-log=/var/log/mysqld.log open_files_limit = 8192 [mysqldump] quick max_allowed_packet = 16M [myisamchk] key_buffer = 64M sort_buffer = 64M read_buffer = 16M write_buffer = 16M [mysql.server] user=mysql
View Replies !
Can't Connect To MySQL Through Socket '/tmp/mysql.sock'
I installed mysql on both of my mac machines running 10.3.9 and 10.4.1. Everything was fine when I installed mysql. Then I shut down both mysql and my computers. When I tried to start up mysql again, it said: "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'" when I tried: mysql mysqld and mysql mysqld_safe & and mysql -u root and it always said "ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)" I also tried ./bin/mysqld_safe --user=mysql & and it said "Permision denied" I know some of you have answered a billioin questions like this before, but I've searched all over the internet and none of the solutions seems to work.
View Replies !
Can't Connect To Local MySQL (mysqld.sock Doesn't Exit)
Warning: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) in ...php Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock in ...php the mysqld.sock file doesn't exist but my mysqld is started successfully. How can i resolve this error ?
View Replies !
ERROR [HY000][MySQL][MyODBC 5.00.11][MySQL] 2006 MySQL Server Has Gone Away
Hosting Package Environment: ASP.NET ver 2 MySQL 5.0 FP Extensions 2003 Progression: Developed Website Outline Developed Database in Access2003 Migrated AccessDB to MySQL @ Hosting Service using Migration Tool. Can connect using MySQL Admin tools and run queries fine and all data, relations etc. are there. PROBLEM: (The heart of the matter) Starting simple, created GridView Control using Microsoft Visual Web Developer 2005 Express, a few glitches here and there, used the MySQL Connector/ODBC v5.00.11 followed instructions. Can see database in Database Connections Window but when I try to connect the GridView Control to it I get: "Database schema could not be retrieved for this connection. Please make sure the connection settings are correct and that the database is online. ERROR [HY000][MySQL][MyODBC 5.00.11][MySQL] 2006 MySQL server has gone away" Had thought that "Microsoft Visual Web Developer 2005 Express" might be messing with the ODBC driver so thought to download the .NET Connector. That's when it all went bad. The documentation does not say how to install or use the connector or where to put the files. It seems to assume that these bits of information are common knowledge and I suppose that if I had kept up with the technology it might be. But alas I didn't and it Isn't and It Don't work.
View Replies !
Connect To Mysql Server Through Socket
I have installed suse 8.2 a short while ago and at my first attempt to connect mysql (via shell and a perl dbi script) i get following error: can't connect to mysql server through socjet '/var/lib/mysql/mysql.sock'. i know this looks like a common error and I am terribly sorry if this kind of subject has been posted before but I'll appreciate any urgent help. ComputerBild 15-03 bestaetigt: Den besten Spam-Schutz gibt es bei WEB.DE FreeMail - Deutschlands beste E-Mail - http://s.web.de/?mc=021121 .
View Replies !
Connect To Local MySQL Server
I am trying to connect to our remote MySQL server (which is running just fine). I have a perl script which worked just fine on my other Fedora 4 box (all servers are Fedora 4 with latests updates). The one that worked fine it down and I cannot compare anything against it (it was a client also). My problem is, when I try to connect to the server I get: DBI connect('passwd','user',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /home/perl_inc/mysql.pl line 19 I read all the articles I could on the subject talking about how mysql.sock was in /tmp and linking it etc, but on my system I did: find / -name 'mysql.sock' and cannot find it anywhere on my system. My question is, on the mysql client, is there always a mysql.sock file?
View Replies !
Can't Connect To Local MySQL Server... :(
My site is getting very busy and I keep getting this error every few times I visit my site. I just hit refresh and the site loads, but how can I avoid this error from coming up? Do I need a separate mysql server? Or apache has too high loads? What is causing this? PHP Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11) in
View Replies !
ERROR 2006 (HY000): MySQL Server Has Gone Away
We have received the following error: ERROR 2006 (HY000): MySQL server has gone away Is there any limitation in Mysql when we change the system date manually to a future date. Or is there any maximum connection open time in Mysql configuration that need to change.
View Replies !
Can't Connect To MySql Server On Local Host
When I installed MySql on the Windows 2000 Proffessional ,it works fine.But I followed the same installation steps in Windows 2k Advanced Server.It gives me this error "can't connect to MySql server on local host".It says failed to start service . I couldn't find any mysqld.exe file in the processes list of the Task manager window. Please tell me steps to get mysqld.exe file appear on the task manager. Kindly let me know the way to get mysql running.I have the Operating System on E: drive of my computer.
View Replies !
Can't Connect To MySQL Server On Local Machine
am following along in Head First's PHP & MySQL book, at chapter 2. I've downloaded PHP, MySQL, and Apache. A couple basic scripts have worked fine, so I know PHP is working. I can create a table and a database in MySQL throught the command line window, so that seems good. But I'm trying to execute an INSERT function on the example table that the book had me make, using a script, and I'm getting "Error connecting to the MySQL server" which is the or die error message I used for failure to connect. In setting up MySQL, I was prompted for a password but not a username. So I'm trying to leave the username data blank in the mysqli_connect function. I wonder if this is my problem? I've looked through my.ini but to my untrained eye it's all Greek and I can't spot usernames or passwords there, or in any of the other .ini files in the MySQL folder. If I need a password, can anyone tell me how to find out what it is? Here's how I wrote the connect function (username is blank, surrounded by single quotes): $dbc = mysqli_connect('localhost', '', 'password_here', 'databasename_here') or die('Error connecting to MySQL database.');
View Replies !
Error 2002 (hy000)
I am working on OSX. I've already done some searches and came up short. So if anyone could help me that would be great. exact error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) This error happens after I enter my password from this command: /usr/local/mysql/bin/mysql -u root -p One morning I went to start it up and this just happened out of the blue. Its been working fine for the longest time and just crashed all of sudden with this error.
View Replies !
Couldn't Connect To /var/lib/mysql/mysql.sock: Connect: Permission Denied
I try to connect from a perl program to mysql and get: >> Couldn't connect to /var/lib/mysql/mysql.sock: connect: Permission denied 1.) The /var/lib/mysql/mysql.sock file EXIST! 2.) The mysql server is UP, I can connect from the terminal using "mysql" command (which in fact uses this socket!). 3.) /var/lib/mysql/ and everything in it has user=mysql and group=mysql 4.) mysql.sock has 777 permission So I am compleatly helpless why perl can not connect!!! The perl program is OK, I have transfered it to an other server and there it works. The error must be somewhere at mysql but I cant find it
View Replies !
User-defined Function: ERROR 2013 (HY000): Lost Connection To MySQL Server During Query
With mysql-4.1.1-alpha, using any User Defined Function ( UDF) at the query execution stage, on Linux 2.6, gave me the following error: "ERROR 2013 (HY000): Lost connection to MySQL server during query" However, upgrading to mysql-4.1.2-alpha seemed to solve the problem. Both versions were configured exactly as follows ../configure --with-openssl --enable-thread-safe-client --with-mysqld-ldflags =-rdynamic The only way I could solve this was by upgrading to 4.1.2-alpha-log. Then, recompiling the functions, drop the old UDF functions, then, recreate. So far so good. Anyway, if you run into this problem, or just want more detail on the sample User Defined Functions that come with MySQL ( /sql/udf_example.cc), I've put my notes in the following link ( TIP 27 )
View Replies !
Lost Connection To MySQL Server During Query Socket Error On Read. WSAGetLastError Return 10054($2746)
We just migrated our MySQL database from a NetWare server running version 5.0.21 to a openSUSE box running version 5.0.45. Everything ran fine for a couple of days, then clients began losing their connections and creating new ones without the old threads being terminated. This behavior is the same for the Delphi client we use to access our database as well as the MySQL Administrator tool. I've tried adjusting connection_timeout, but overall the settings for this server are the same as the previous one that ran without issues for a year.
View Replies !
Getting Error On Applying Security Error Nr. 2003 Can't Connect To MySQL Server On 'localhost' 1006 1
i have tried over and over and over and over and i even add a port on firewall, but i keep getting this error at the end part of the configuration of MySQL: The security settings could not be applied to the database because the connection has failed with the following error. Error Nr. 2003. Can't connect to MySQL server 'localhost' [10061] if a personal firewall is running on your machine, pleas make sure you have opened the TCP port 3306 for connections. otherwise no client application can connect to the server. after you have opened the port please press [retry] to apply the security settings.
View Replies !
SQL Error = Could Not Connect To MySQL Server
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client an old problem many seem to have had and a few have been able to fix first of all i dot know if this is the right thread to be posting this into if not please let me know what thread i should be posting into. now for my sys info OS - Win 2k SP4 using IIS as a webserver MySQL 5.0.11 PHP 4.4.1 what i do know is my webserver can be accesed from the internet Mysql definately works as i use a php script from a remote server to access my database PHP 4.4.1 definately works as i used info.php to see what vers of php im running. Ive spent server hours searching thru forums including this 1 ive done the old_password reset password stopped and restarted both services in the right order however that was someone running Apache Web server. As far as i can tell its a communication problem between IIS and MySQL any help would be much appreciated. Maybe i have to scrap IIS and swith to Apache wanted to know if someone else had this porblem running IIS.
View Replies !
Mysql Can't Connect Through Mysql.sock With The Right Dir
there's some topics related with socket connection problems, but it is not exactly my case: i'm using Mac os x 10.4.11 with apache 1.3.41 PHP 4.4.9 and MySql 5.1.31, When i was testing in a browser a database i moved mysql.sock to /var/mysql/mysql.sock from /tmp/mysql.sock, so when i used mysql command i moved from /var/ to /tmp/ . But suddenly mysql command doesnt work, it gives this connection error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (61) But in reality mysql.sock is actually in /tmp/mysql.sock .
View Replies !
Error 2003: Can't Connect To MySQL Server On 'localhost' (99)
The error I am getting it's look like "Errorno = 2003 Error Message = Can't connect to MySQL server on 'server IP address' (99)". This error is coming most of the time. 1) the server is also running when I got this error. 2) I checked the config file, there is no parameter defined for the mysql port, it might be using the default port no 3306. 3) I have checked the server with telnet also, I can connect to the server with the default port no, it's showing connected.
View Replies !
Error: Can't Connect To MySQL Server On 'localhost' (10061)
I m trying to solve this but i coulnt do it..i get this error when i try to connect to mysql. Warning: mysqli::mysqli() [function.mysqli-mysqli]: (HY000/2003): Can't connect to MySQL server on 'localhost' (10061) in c:Inetpubwwwroot est.php on line 20 Error: Can't connect to MySQL server on 'localhost' (10061). But in the command line i can create database and tables.. i m using IIS6, php 5.1.3 and mysql4.1.20.
View Replies !
Can't Connect To The Mysql Server! Error Number 1130
I can access the database via Mysql command line clinet. But I can't access the database via MySQL Query Browser. It returned the following error: Could not connect to the specified instance. MySQL Error Number 1130 Host "hostname" is not allowed to connect to this MySQL server
View Replies !
Error Nr. 2002 (mysql.cnf)
Im finding some problem connecting with MySQL Query Browser. It says : "Can't Connect to local MySQL server through socket /var/lib/mysql/mysql.sock (2)" but when I use the option: "Connect Usin Socket File: /tmp/mysqld.sock" it's working fine ! In my "my.cnf" i don't have any lines looking /var/lib/mysql/mysql.cnf! Is there any cnf file for Query Browser?
View Replies !
MySQL Error: 2002 On OS X And Dreamweaver
I am using Dreamweaver 8, MySQL 5.0.10 and OS X 10.4.4 with the standard PHP & Apache servers supplied by Apple. MySQL seems to be working correctly as I can aceess normally from the OS X Shell and from MySQL Administrator and all works fine. However when I try to connect from Dreamweaver I get the error message above. "MySQL error: 2002 Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) I did a search on this error on the forums and it does appear that it is a common error but it is usually associated with an MySQL startup problem, however in my case MySQL is running fine from what I can tell.
View Replies !
Can't Connect Error 2002
I've just installed MySQL 4.1.13 on a Fedora core 3 system. It installed great. It wasn't hard to get it running and create a few databases. But I can't seem to make the client shell run from anywhere but the mysql/bin directory. I've placed the /usr/local/mysql/bin directory in my PATH, but I still have to change to this directory to make the MySQL shell to work. If I'm try to run it from any other directory I get this error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) What sleight of hand to do I need to do the get the MySQL client to run no matter where on the machine the calling process is? Since I'll need to do this to get my web server to use MySQL.
View Replies !
Error 2002 - Cant Connect
I'm getting error 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when I try to connect to the database. This started after the following: 2 table repair processes were running and taking an exceptionally long time. I killed both processes. I tried to shut down mysql and received the msg waiting for mysql to exit... gave up waiting! After this I power cycled the server. Then started mysql (didn't get any error msgs) - but when I try to connect I get the 2002 error. If I try to shut it down I get the gave up waiting msg again.
View Replies !
|