ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'
PHP and Mysql aren't communicating on Mac OSX 10.4 and I
tried changing the location for where PHP looks for the file, but I
can't save in the etc folder. Help?
D**iesel wrote:
Apple made a presumption about MySQL and how it "should" be installed/configured.
You mean correctly?
Follow the instructions in this thread to properly configure PHP and MySQL on MacOS X: http://discussions.apple.com/thread.jspa?messageID=12229472�
Similar Messages
-
"Can't connect to local MySQL server through socket '/tmp/mysql.sock'"
Data Services=3.1
Repository=12.2.2.0000
Red Hat Enterprise 5
Designer,Job Server,Job Engine=12.2.2.3
After an unscheduled server reboot with DS up and running when trying to start a job in either Data Services Management Console or DS Designer getting the following:
"Can't connect to local MySQL server through socket '/tmp/mysql.sock'"
The mysql.sock have never been in /tmp and on the production server it does not exist there and the production server is up and running correctly. If a link is created to mysql.sock(/home/user/boedge31/bobje/mysql) the job will start but return this message:
"Cannot retrieve <Version> from the repository. Additional database information: <SQL submitted to ODBC data source <localrepo> resulted in error <MySQL ODBC 3.51 Driver mysqld-5.0.46-enterprise No database selected>. The SQL submitted is <select VERSION, SECURITYKEY, GUID from AL_VERSION where NAME = 'Repository Version'"
I checked and AL_VERSION and the Version field exist.
Before the shut down DS was working correctly and had no issues. My best guess is a part of the repository was corrupted during the unscheduled shut down. It seems like DS has "forgotten" some of the settings.
Any suggestions on a possible solution?The issue has been solved.
There was a bad path in $LD_LIBRARY_PATH.
Removed the path and DS started working again. -
./mysqlshow: Can't connect to local MySQL server through socket '/tmp/mysql
hi all ,I install mysql on Solaris 10 at first it work fine , but after I restart my PC and go back again I got error on
./mysqlshow: Can't connect to local MySQL server through socket '/tmp/mysql
I google , but still not sure how to deal with it
Thank youI've just done a clean install of OSX Server and added the latest MYSQL packaged installer. Afterwards I found the lock file in /private/tmp/mysql.lock
The easiest way to solve this problem is to create a symbolic link so that the lock file appears to be in right place.
e.g.
cd /var
sudo mkdir mysql <== this assumes the directory is missing
cd mysql
sudo ln -s /private/tmp/mysql.sock mysql.sock
After this msql commands should work fine, and you've not fiddled with the security settings on users/groups.
HTH
Christian -
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (46)
I can't connect...I have th connection to the database form
DW to the db....I can't get the server to connect. HELP!I've just done a clean install of OSX Server and added the latest MYSQL packaged installer. Afterwards I found the lock file in /private/tmp/mysql.lock
The easiest way to solve this problem is to create a symbolic link so that the lock file appears to be in right place.
e.g.
cd /var
sudo mkdir mysql <== this assumes the directory is missing
cd mysql
sudo ln -s /private/tmp/mysql.sock mysql.sock
After this msql commands should work fine, and you've not fiddled with the security settings on users/groups.
HTH
Christian -
Can't connect to local MySQL server through socket '/var/mysql/mysql.sock'
I'm using the pre-installed versions of php and mysql under Mac OS X Server 10.4.4 running on a G4 and am unable to get anything involving mysql to work.
I ssh to the server and enter various commands in Terminal:
on typing "mysql" I get
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
and on typing "mysqladmin version" I get
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/mysql/mysql.sock' exists!
On typing "sudo mysqld_safe" I get
Starting mysqld daemon with databases from /var/mysql
STOPPING server from pid file /var/mysql/MyServer.local.pid
070722 16:06:05 mysqld ended
/var/mysql/MyServer.local.err contains
070722 16:06:04 mysqld started
070722 16:06:04 [Warning] Setting lowercase_tablenames=2 because file system for /var/mysql/ is case insensitive
070722 16:06:04 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
070722 16:06:05 InnoDB: Starting log scan based on checkpoint at
InnoDB: log sequence number 0 43634.
/var/mysql has permissions 775.
The line
mysql.default_socket = /var/mysql/mysql.sock
is in /etc/php.ini
whereis mysqladmin ->
/usr/bin/mysqladmin
whereis mysql ->
/usr/bin/mysql
ls /var/mysql ->
MyServer.local.err
ib_logfile1
mysql
ib_logfile0
ibdata1
test
Can't find my.cnf or my.ini anywhere
Can't find mysql.sock anywhere
I'm trying to get a bug database running (mantis) under Mac OS X Server 10.4.4 that I can access from local clients.
I'm trying to follow directions at http://www.mantisbugtracker.com/manual/manual.installation.php
without knowing anything about mysql or php and I'm stuck on step 3:
"Next we will create the necessary database tables and a basic configuration
file."
I get a message saying
"Does administrative user have access to the database? ( Lost connection to MySQL server during query )"
I don't even know if following the mantis directions has resulted in the creation of a database or not. Where would it be?
Thanks for any help.
Intel iMac Mac OS X (10.4.10)I've just done a clean install of OSX Server and added the latest MYSQL packaged installer. Afterwards I found the lock file in /private/tmp/mysql.lock
The easiest way to solve this problem is to create a symbolic link so that the lock file appears to be in right place.
e.g.
cd /var
sudo mkdir mysql <== this assumes the directory is missing
cd mysql
sudo ln -s /private/tmp/mysql.sock mysql.sock
After this msql commands should work fine, and you've not fiddled with the security settings on users/groups.
HTH
Christian -
I was following this adobe article (
http://www.adobe.com/devnet/dreamweaver/articles/php_macintosh.html)
to set up PHP and MySQL and connect a MySQL database to dreamweaver
in Mac OS 10.4.8 and I kept getting:
"Can't connect to MySQL server through socket
'/var/mysql/mysql.sock' ERROR#: 2002".
After a lot of searching I came across
this
article which said that there was an error in the PHP and MySQL
connection or something.
Anyway all I had to do was type (in a TERMINAL window):
$ sudo mkdir /var/mysql
$ sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
and that fixed the problem, otherwise the adobe article
worked very well.
Check out the "this article" link to get the fix straight
from the horse's mouth.I was following this adobe article (
http://www.adobe.com/devnet/dreamweaver/articles/php_macintosh.html)
to set up PHP and MySQL and connect a MySQL database to dreamweaver
in Mac OS 10.4.8 and I kept getting:
"Can't connect to MySQL server through socket
'/var/mysql/mysql.sock' ERROR#: 2002".
After a lot of searching I came across
this
article which said that there was an error in the PHP and MySQL
connection or something.
Anyway all I had to do was type (in a TERMINAL window):
$ sudo mkdir /var/mysql
$ sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
and that fixed the problem, otherwise the adobe article
worked very well.
Check out the "this article" link to get the fix straight
from the horse's mouth. -
Can't connect to local web server
I'm not quite sure when this happened; I think it was upgrading to iPhoneOS 3.x but I can't swear to that (currently running 3.1). Anyway, the problem is that, whether from my app or even simply using Safari, I can't connect to a local webserver. If I'm on one computer in my office (working over WiFi just like my iPhone), and type "http://192.168.1.110/file", where 110 is a different computer, Safari will display the page just fine. But if I'm using my iPhone in the office, on the same network, and type the same URL, it will not connect. For SURE this used to work, and I haven't changed any settings on my network or on my iPhone for that matter.
No problem with connecting to external websites, clearly.Web services are not relevant to DNS host names. You'll need to configure a default domain name for whatever is being used as the local domain, whether that is established via System Preferences or via DHCP settings. If your Windows box is running a DNS server, you'll need to set the Mac DNS resolver address at the Windows DNS server.
-
How can you connect to MS SQL Server through Oracle 9i?
i.e. we want to connect through a stored procedure and NOT a form. Our live DB is still in 9i.
CKPT wrote:
user12240205 wrote:
i.e. we want to connect through a stored procedure and NOT a form. Our live DB is still in 9i.we want to connect through a stored procedure -- connect through stored procedire? i never heard. can you please post your views this information is not enough.CREATE PROCEDURE proc1 (p_sqlsever_credentials varchar2, p_status OUT boolean) IS
BEGIN
-- Connect to SQL Server using p_sqlsever_credentials
-- Execute Stored Procedure (SP) in the SQL Server DB passing paras to it.
-- If SP in SQL Server is successful then SP will COMMIT in SQL Server
-- If failure it will be rolled back there.
-- SP will return status
-- Pass the status to the calling program
END;
/ -
I can't connect to a certain server through my airport extreme
A couple of weeks ago, I noticed I could no longer connect to my websites, which are all on the same server.
I can see all other websites I've tried to visit.
It doesn't seem to be a server problem. Everyone else can see the sites fine.
If I connect my computer directly to my router, I can see the sites.
I've tried many computers and phones on my network, and none can see the sites.
Any Ideas?My ISP is Time Warner Cable.
If I traceroute kalvan.net (one of my websites), I get:
traceroute to kalvan.net (72.52.151.201), 64 hops max, 52 byte packets
1 10.0.1.1 (10.0.1.1) 1.455 ms 1.170 ms 0.753 ms
2 user-10cm241.cable.mindspring.com (64.203.8.129) 35.231 ms 11.834 ms 13.975 ms
3 76.167.27.193 (76.167.27.193) 34.563 ms 11.825 ms 15.520 ms
4 agg11.vnnycajz01r.socal.rr.com (72.129.14.96) 12.418 ms 16.525 ms 22.996 ms
5 agg29.lsancarc01r.socal.rr.com (72.129.13.0) 14.835 ms 13.719 ms 20.857 ms
6 bu-ether26.lsancarc0yw-bcr00.tbone.rr.com (66.109.6.212) 16.578 ms 12.756 ms 15.067 ms
7 * 107.14.17.248 (107.14.17.248) 12.767 ms 23.991 ms
8 50-248-118-177-static.hfc.comcastbusiness.net (50.248.118.177) 13.727 ms 13.847 ms 16.533 ms
9 te-2-0-0-0-cr01.losangeles.ca.ibone.comcast.net (68.86.82.33) 18.490 ms
te-2-0-0-13-cr01.losangeles.ca.ibone.comcast.net (68.86.84.161) 20.720 ms
te-2-0-0-6-cr01.losangeles.ca.ibone.comcast.net (68.86.82.57) 15.689 ms
10 he-2-8-0-0-cr01.sanjose.ca.ibone.comcast.net (68.86.86.97) 30.465 ms 25.046 ms 24.117 ms
11 he-0-13-0-0-cr01.denverqwest.co.ibone.comcast.net (68.86.89.130) 60.354 ms 76.570 ms 61.537 ms
12 he-3-11-0-0-cr01.denver.co.ibone.comcast.net (68.86.89.29) 59.126 ms 57.527 ms 55.937 ms
13 he-5-7-0-0-cr01.350ecermak.il.ibone.comcast.net (68.86.86.109) 69.562 ms 67.496 ms 69.982 ms
14 hu-0-10-0-1.pe03.350ecermak.il.ibone.comcast.net (68.86.86.6) 64.994 ms 65.594 ms 68.749 ms
15 * 50.242.150.126 (50.242.150.126) 68.073 ms
50.242.150.130 (50.242.150.130) 82.391 ms
16 lw-core5.rtr.liquidweb.com (209.59.157.244) 72.977 ms 70.951 ms 70.107 ms
17 69.167.128.241 (69.167.128.241) 70.520 ms 76.307 ms 72.934 ms
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
... (snip) ...
64 * * * -
MySQL problem -- ERROR 2002 Can't connect to local MySQL server
Not Sure if this would be a right forum for my problem...
I'm installing mySQL on my iBook, and thought that I have configured it. But then, after followring some instuctions from Adobe and Marc Liyanage sites, I have a problem to connect. This is what I've done in "TERMINAL"
~username$> cd /usr/local/mysql
mysql ~username$> sudo chown -R mysql data/
(asking for admin password)
mysql ~username$> sudo echo
mysql ~username$> sudo ./bin/mysqld_safe &
username-ibook-g4:/usr/local/mysql username$ Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/roshaili-osmans-ibook-g4.local.pid
060611 16:31:30 mysqld ended
mysql ~username> /usr/local/mysql/bin/mysql test
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
[1]+ Done sudo ./bin/mysqld_safe
mysql ~username>
When I typed ::
/usr/local/mysql/bin/mysqladmin -u root
(see that there's no password)
Then it displays:
/usr/local/mysql/bin/mysqladmin Ver 8.41 Distrib 5.0.22, for apple-darwin8.6.0 on powerpc
Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Administration program for the mysqld daemon.
Usage: /usr/local/mysql/bin/mysqladmin [OPTIONS] command command....
-c, --count=# Number of iterations to make. This works with -i
(--sleep) only.
...... bla bla bla.....
Variables (--variable-name=value)
and boolean options {FALSE|TRUE} Value (after reading options)
count 0
force FALSE
compress FALSE
character-sets-dir (No default value)
default-character-set (No default value)
host (No default value)
port 0
.........bla bla....
ping Check if mysqld is alive
processlist Show list of active threads in server
reload Reload grant tables
refresh Flush all tables and close and open logfiles
shutdown Take server down
status Gives a short status message from the server
start-slave Start slave
stop-slave Stop slave
variables Prints variables available
version Get version info from server
roshaili-osmans-ibook-g4:~ roshailiosman$ >
-----------------finish-----------------
Does that mean that I'm connected to mySQL?
Does anybody how to connect to MYSQL from the terminal? Thanks.
iMac Mac OS X (10.4.6)
iMac Mac OS X (10.4.6)Your biggest 'issue' right now is that your mysqld process is stopping on you -- making a connection impossible.
Why it's bombing might be in a log .. try in mysql/data/usr.local.err .. and fix why itsbombing.
To connect to it it'll be : mysql -u root -ppassword -D database -
Can't connect to Game Center server.
Can't connect to Game Center server.
Hello, same issue.
Alternating error messages:
a) GK Error domain error 3
b) Can't connect to Game Center server
The test solutions:
a) Multiple restart and hard restart iPhone
b) Test WiFi and 3G connection
c) Reset password
Error still persists about 3 hours. Maybe it's a coincidence, but the error began to show me the 8.1 update on iPhone 5. -
Dear Fellas:
I received "database error #2002 can not connect local mysql server to socket through '/var/run/mysqld/mysqld.sock'(2)" on mac os x 10.9.2.
mysql info:
ps -ef | grep mysql
0 66 1 0 11:06AM ?? 0:00.04 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
74 225 66 0 11:06AM ?? 0:02.50 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.err --pid-file=/usr/local/mysql/data/Chuans-MacBook-Pro-2.local.pid --socket=/var/run/mysqld/mysqld.sock
501 952 947 0 3:52PM ttys000 0:00.00 grep mysql
Please help!!Fascinated and guessing:
Something related to sock(2) because that's not part of your copied info. I'm thinking you've doubled up on sockets and the second socket doesn't exist, meaning you should be connecting to the first socket "mysqld.sock" whether automatic or not.
I've only used GUI tools on purpose, so does this mean you've already got MySQL running and you tried to launch it again manually? Perhaps you already have one instance of a db and you're trying to launch a second instance, and the two can't coexist with a single user local db?
Assuming this is all local, I'd shut down the db service and restart it, out of hand. I've seen similar messages when I set the db to start up on boot, and it didn't finish shutting down when I tried to restart it manually. Usually the GUI won't let me turn it on because it reports it's already running, but in that case it hadn't finished performing what the GUI was reporting.
Just speculating. -
i m using repot engin to disply report its running in windows well in my local machine but whn i deployeed it to test server (AIX) it gave me this error server is websphere
E SRVE0026E: [Servlet Error]-[Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.]: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:175)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java(Compiled Code))
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)
at java.awt.Font.initializeFont(Font.java:333)
at java.awt.Font.<init>(Font.java:368)
at com.actuate.ereport.engine.templateio.TmplReader.getFont(Unknown Source)
at com.actuate.ereport.engine.templateio.TmplReader.getFont(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.handleFont(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.closeObjects(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.endElement(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.startParsing(Unknown Source)
at com.actuate.ereport.engine.templateio.XMLTmplReader.readTemplate(Unknown Source)
at com.actuate.ereport.engine.templateio.TmplReader.ReadTemplateFromBytes(Unknown Source)
at com.actuate.ereport.engine.templateio.TmplReader.readTemplate(Unknown Source)
at com.actuate.ereport.engine.ACJEngine.readTemplate(Unknown Source)
at com.actuate.ereport.engine.ACJEngine.readTemplate(Unknown Source)
at com.actuate.ereport.eapi.factory.DesignFactoryImpl.load(Unknown Source)
at com.actuate.ereport.eapi.factory.DesignFactoryImpl.load(Unknown Source)
at ccrmsweb.actions.PrintRpts.execute(PrintRpts.java:129)
Please tell me wht exactly i have to do, i men exactly its very urgentCheck this thread:
Re: Can't connect to X11 window server using 'localhost:0.0' -
I get an error that says can't connect to the itunes store when I search for a specific artist only
Hi all,
When I try to search for music by a specific artist in the iTunes store on my iPhone 5, I get an error that says "Can't connect to the iTunes store". This only happens when I search for music by this band. I can search for other artists and listen to song clips and everything seems to be connecting to the iTunes store just fine. But for some reason, it doesn't work with this artist. The band name is July for Kings. Not sure if anyone else has had this issue, but I hope so!
Thanks,
RickIF you are not able to resolve your issue then contact Apple Support at https://getsupport.apple.com/GetproductgroupList.do?caller=ikb&PRKEYS=PL220,1316 29,PL113,PL302,PF3,PF4,PF9,PL303,PL339,p…
hopefully they can help. You may also be interested to know that for some reason it is just not available to a lot of people at the same time. Appears to be an issue of more users than their servers can handle. Has happened periodically for at least 6 months that I know of but apparently users are able to use within several days if there are no other issues with the users device. -
Dear all,
i am installing sap4.7 in hp-ux, after installing CI, i start DI, in 17 th step it asking to install oracle by executing RUNINSTALLER.....just i open new termenal (xshell) with orasid user i executed RUNINSTALLER but after some time it will show like this---- 172.16.1.254 is my local machine 80.0.0.151 is server
/oracle/stage/920_64/Disk1/SAP/SVRCUSTOM.RSP --> /tmp/.orainst_rsp.8848: Done
Initializing Java Virtual Machine from ../../stage/Components/oracle.swd.jre/1.3.1.0.0a/1/DataFiles/Expanded/bin/java. Please wait...
$ Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '172.16.1.254:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:58)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:53)
at java.awt.Window.<init>(Window.java:183)
at java.awt.Frame.<init>(Frame.java:310)
at java.awt.Frame.<init>(Frame.java:289)
at oracle.ewt.popup.PopupFrame.<init>(Unknown Source)
at oracle.ewt.lwAWT.BufferedFrame.<init>(Unknown Source)
at oracle.sysman.oii.oiif.oiifm.OiifmMainFrame.<init>(OiifmMainFrame.java:296)
at oracle.sysman.oii.oiic.OiicInstaller.<init>(OiicInstaller.java:231)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:599)
How to resolve this issue, what is the problem.
Regards,
satish-kIf you logon to the console with a user, only that user is permitted to "send" the display to the screen. If you do an "su - ora<sid>" that user must be enable to do so too.
- logon as root
- open a terminal windows (a new one)
- execute "xhost +"
- use another terminal window
- execute "su - ora<sid>"
- execute "setenv DISPLAY <ip>:<port>"
- then execute ./RUNINSTALLER in the SAP subdirectory of Disk1 (NOT runInstaller)
Markus
Maybe you are looking for
-
CD drive does not appear to be working properly
I loaded a CD to install some software and the drive never gets up to speed. The disk is also not displayed on the screen. All preferences seem to be set correctly.
-
Error when compiling formula in OFA 6.3.4
When using OFA 6.3.4 for web we get the following error message displayed in an alter dialog window The firmula, xxx, could not be compiled. It will be removed from status Pleas contact your database administrator. It is no error number displayed, ju
-
I can't not airpaly morring on lion 10.8
my macbook's mid 2010 core i5 and ram 4g.but i can't not airplay mirroring on lion 10.8
-
Any way to Cut In-to-Out?
Is there any way in CS6 to mark an In and Out point, then use Cut or Copy to lift the marked section (using whatever tracks are "on") for Pasting elsewhere? Or is there some other way to accomplish this, without having to "add edits" ("razoring") the
-
Transfer Book in progress from one Mac to another
I've been working on a book in iPhoto 6 on a 12" PowerBook while I have been traveling. Now I'd like to transfer the work I've done to my iMac in order to see the pictures on a larger screen. I'd really prefer to only transfer the book layout and acc