I can't connect to MySQL getting Error #2002 after I updated php
I'm on a mac and I updated my version of PHP and installed the GD library.
The problem is that I needed up date my connection to the database or something to that affect so I ran this command line:
sudo mkdir /var/mysql
sudo ln -s /private/tmp/mysql.sock /var/mysql/mysql.sock
And it worked... but then I restarted my computer and now I can't connect and I'm getting the error I had of...
#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
So I tried the above two lines of code and it said those files/directory exist.
I went into /etc/php.ini file to change this mysql.default_socket = /var/mysql/mysql.sock
So what do I need to do here to change this permanently?
Post Unix queries to the Unix forum under OS X Technologies.
Similar Messages
-
HT204291 can see airplay icon but getting error -15000 after I updated to itunes 11.4
Airplay quit working after I updated itunes to v. 11.04. I can see the airplay icon in both the mini-player and home screen. It shows the device in the listings but when I select it I receive unknown error -15000. All was fine until the upgrade. I'm running Windows 7. Can anyone tell me how to fix this problem? Thanks.
Hi Monie35,
The article below may be able to help you with this issue.
Click on the link below to see more details and screenshots.
I've quoted some helpful highlights for you:
Troubleshooting AirPlay and AirPlay Mirroring
Verify that your AirPlay-enabled devices have the most up-to-date software or firmware.
Verify that your iOS device has Wi-Fi turned on. Enable Wi-Fi on your iOS device by going to Settings ]]> Wi-Fi.
Verify that all your AirPlay-enabled devices are logged on to the same home Wi-Fi network (check the home network names on your devices to confirm).
If trying to AirPlay, or AirPlay mirror, to your Apple TV (2nd or 3rd generation), ensure that AirPlay is enabled on your Apple TV as well. You can enable or disable AirPlay on Apple TV in the AirPlay menu: Settings > AirPlay
Check Internet or network connectivity on all affected devices.
Temporarily disable firewalls (both network and local) and security software. Security software and firewalls may block ports that AirPlay uses to stream content. You can often resolve issues with security software by updating, correctly configuring, or uninstalling security software.
I hope this information helps ....
Have a great day!
- Judy -
HT201210 I am getting error 29 after i update my I phone 3gs?
I am getting error 29 after i update my I phone 3gs?Need help, thanks!
http://support.apple.com/kb/TS3694#error29 see link
-
Can't connect to mysql - unidentified error
I am new at this. I created a PHP page and I want to connect to mysql on my host's server. I can connect to my server as I can upload my site. When I click on my database - MYSQL connection in dreamweaver I populate the appropriate informatioin. When I hit test I get an unidentified error It doesn't appear it is connecting to my database. My cpanal and database appear to be set up so I can access it remotely.
YUUGGG. Since I can connect to my server to upload my site, I have verified I should be ok with accessing the database remotely what could be the problem?Connection name = database
MySQL server: 174.120.152.211 (I was told to use this by my hosting company since I was accessing the file remotely
Use name: jake_jake
Password - password for database
datebase = database name
What's weired is I can connect to upload my site but when I try to connect to get my database I can't. -
Help! Can't connect to internet or reset clock after Java update.
Software update just installed the update Java SE 6 to 1.6.0_20 on my Mac Mini with Snow Leopard 10.6.3. After the restart I got a warning: "Your computer's clock is set to a date before Jan. 1, 2008. This may cause some applications to behave erratically." NO Kidding!
Immediately after that warning window appears another one comes up saying "None of your preferred networks is available" and it shows the listing of all the internet network names in my area. If I select mine (which is listed AND is available because I'm using it with my other computer right now) I can't click on the "join" button because it's "grayed out".
If I go to "Network Diagnostics" and attempt to connect through there it rejects my WPA password. WHY IS IT THAT I HAVE TO GO THROUGH SETTING THIS UP ALL OVER AGAIN ANYWAY???
Also I cannot put in the correct Date and Time in system preferences because it's all grayed out.
Do I need to uninstall? How? I greatly appreciate your help!!"Zapping the PRAM" was something I used to do on my old power mac before OSX. Maybe that's not related to your PRAM battery statement, tho. This is a new Mac Mini, less than a year old. I'm guessing that the problem is with this JAVA update is NOT compatible with Snow Leopard 10.6.3, but that was never mentioned in info/details of the update. My Mac was running great online and off before I let the Software Updater install.
-
I am not able to load I Tunes.....I attempted to uograde and now am unable to start Itunes....I uninstalled it and reinstalled no luck. HELP?
Follow the below procedure if you are using a Windows based PC. I did not develop it, another forum user did, but I did insert 1 additional step in case you use a 3rd party software package to give your apple devices "Airprint" capability for your non Air Print capable printers (Such as Fingerprint).
Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (Later)
Remove all of these items in the following order:
Remove any 3rd party software which uses Airprint features (such as Fingerprint by Collobos)
iTunes
Apple Software Update
Apple Mobile Device Support
Bonjour
Apple Application Support
Reboot, download iTunes, then reinstall, either using an account with administrative rights, or by right-clicking the downloaded installer and selectingRun as Administrator.
See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8 -
Can I connect to MySQL database
sorry for my English...
I'm absolutely new in Flex
can I connect to MySQL database?
I read here that I need to create a java class file and edit
an xml to create connection to oracle, can I connect to MySQL
server too, I think that the PHP-XML is too slow to work with lare
amounts of data... so can you post me MXML, the XML, and the JAVA
class file, with I will be able to send sql to mysql server and get
the response?
or FDS is a stand-alone SQL server?Flex is not a SQL server.
The Flex SDK and compiler supports developing applications
that run in the Flash player.
Flex Data Services is deployed as a Java web application that
simplifies integrating Flex clients with Java server-side resources
(including interacting with SQL databases via Java).
FlexBuilder is an IDE for developing Flex apps.
I'd recommend spending some time browsing the Flex product
area on adobe.com.
Best,
Seth -
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 -
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. -
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. -
Can't connect to Yahoo! calendar.
When trying to connect Mail, Contacts, Messages and Notes connect but Calendar and Reminders don't connect.
I get error A secure connection couldn’t be established.
I think a lot of people are getting this. Some solutions with Gmail but v little with Yahoo!
Any answers?
drlounger.
Yosemite
Retina macbook pro 2012Dear Al
Thanks for your reply.
I have just found out what's wrong. I went to the 'more info' section of my Chitchat application and it took me to a link where it explained that Yahoo Chat has ditched chatting with the Java protocol and chatters can now only chat via the Yahoo Messenger protocol, which is Yahoo Instant Messenger with Voice. Unfortunately Yahoo doesn't provide a platform for Yahoo Voice for Macintosh computers. Though the original link I went to provides another link to a thing called 'Adium' from which a Mac can access Yahoo Chat's new protocol, although it's not fully developed yet.
Oh...and thanks so much for letting me know about the Java update release. I did not know that I have to upgrade my system first to recieve the latest update information.
Regards
Tina -
MySQL - Another 'Can't connect through mysql.sock' question...
Hey, folks.
So I'm trying to install MySQL to run with PHP on my PowerBook G4 (running 10.4.7, non-server edition) to use it to test out a shopping cart program for a website I'm building.
I had it working as of Monday, when I installed it, got all the permissions set, built the necessary tables, and changed the root password (and logged in just to make sure it worked before retiring for the night)...but today I realized that I had somehow installed the wrong version of MySQL (I connected to it earlier today and discovered it was 4.026 - and I needed to be running MySQL 4.1.20, in order to be running the same version as my webhost).
So I decided to upgrade. I downloaded and installed the 4.1.20 file, followed the directions about creating the system tables, changed permissions via sudo chown -R mysql:mysql data...and now, when I go to change the root user password (just to make sure it's still the same as it was), I get the following error:
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
This error also occurs when I try to simply startup MySQL. I also now find I can't connect via MySQL Admin, either - it gives me the same error. Pinging the host works, however.
Sooo...anyone have any ideas? I've read up on the forums re: Apple changing the socket to /var/mysql/mysql.sock as of 10.4.4, but it seems that would have affected me earlier this week when I was running the previous version of MySQL, too (I certainly haven't upgraded the OS since then).
Regardless, I can't connect through MySQL Admin using the /var/mysql/mysql.sock socket, anyway...nor the standard /tmp/mysql.sock.
Any thoughts on what might be causing this? I should confess, I'm well-versed in DOS (ugh), but UNIX is not really my strong suit, so I'm still figuring out how to get around in the Terminal...
Thanks so much for any input you can give me!
(Oh, one more thing, since it'll probably come up - I'm not currently connecting via PHP, but I will be eventually. Right now, I just want to be able to change my root password, and login from the Terminal)!
Thanks again!\
PowerBook G4 1GHz 15 Mac OS X (10.4.7)Alright, folks.
Somehow my computer has fixed itself. After wiping the mysql directories entirely, then reinstalling, I was still getting the same error.
After going back to the original "MySQL-On-Mac" site at Marc Liyanage's entropy.ch site & following some of the instructions there, somehow my problem seems to have fixed itself.
I wish I could tell you what the solution was (to benefit anyone else having this problem), but since I was simply following the unix commands listed there (without much explanation, at times, as to what they were doing), I just know that somehow it worked.
(But if I had to make a guess, I think it had to do with starting the server via sudo ./bin/mysqld_safe &)... -
Can't connect to cloud.. error message.
Ever since I did the Lollipop update on my Galaxy S5 I'm getting this error message: "Warning! we can't connect to the coud service at this time. Please check your data servic e and try again". This is happening CONSTANTLY. Sometimes every five minutes if I'm using my phone.
I'm connected to WiFi and data, so I don't understand why I keep getting this error message or how to make it stop. Anyone have suggestions?
Please refer to post and replies: Can't connect to Cloud.. error message.
Message was edited by: Verizon ModeratorLet's get you connected to your cloud once and for all madelinefrances. When was the last time you were able to connect to the Cloud successfully? Are you able to connect to the internet successfully on your phone? Does the error message pop up randomly on your phone or only when you try to access the application?
Thank You,
MichelleL_VZW
VZW Support
Follow us on Twitter @VZWSUPPORT -
I can't open PSE. Get error message 150:30 and restarting computer doesn't help. Any suggestions?
Please try out the instructions mentioned in this article.
Thanks!! -
After update, Itunes can't load. I get error message R6034, attempt to load the C runtime library incorrectly.
I also get error code 7 (Windows error 1114), saying itunes wasn't installed correctly. It appears that I am not the only one with this issue. what is wrong with the latest update?? I tried removing Itunes and all of its components and installing it again, but get same errors and i have also tried doing a system restore with the same resultsDoublechecking. Have you also tried the following user tip?
Troubleshooting issues with iTunes for Windows updates
Maybe you are looking for
-
I cannot download certain games because I do not recall the answers to my security questions when it asks if I am 17 years or older. In fact, I do not even recall being asked these security questions. I tried to guess logical answers but now my iPad
-
Deployment of 10.1.3.2 application on weblogic 10.3
Hi I have deployed an 10.1.3.2 built application on weblogic 10.3 Deployment is successful. I have even configured SQLAuthenticator as part of Default myrealm on the server. But still i get Unauthorised access error while login. Can anyone direct me
-
Considering cancelling infinity 2 after 12 days du...
Since installation of inifinity 2 I've had poor internet speed. First I was told to wait for the stablisation peroid and the call centre assured me the speed would improve. I was intially getting 7mphs and now I have 11mphs even though I'm 0.3km away
-
Getting lots of crazy error messages pertaining to the external hard drives. This problem is bad. Usually can't run the software very long at all before it crashes. Logic version 9.1.8 running on OS 10.7.5 on a Macbook Pro
-
The directions for charging are not clear, or my 333 is not responding as expected. I plug it into my compurer to charge, and it states "Connecting" forever. The instructions say that it'll also show a battery on the screen bottom, but it does not