Community Page
- www.tech-recipes.com/ Jump to website »
-
Subscribe -
Community
-
Top Commenters
-
Popular Threads
-
Recent Comments
- ok it comes back and says they are terminated, however, task manager still shows all of the ones killed still in memory. I am REAL tired of constantly rebooting. In all my 20+ tech years I have...
- THANKS!
- THERE IS A BETTER WAY TO BYPASS TIME LIMIT 1. SWITCH OFF UR MODEM 2. DELETE COOKIES&TEMPORARY INTERNET FILES FROM INTERNET OPTIONS MENU 3.SWITCH ON UR MODEM N U CAN DOWNLOAD AGAIN WITHOUT...
- Amazing. I just googled for such a solution and here it is. Where as when I attempt the HP or microsoft websites for such a solution, they beat around the bush (like all the time). Thanks.
- please click in address bar and then enter key
Tech-Recipes
Cookbook of Tech TutorialsSolve: Can’t connect to local MySQL server through socket /tmp/mysql.sock | MySQL | Tech-Recipes
Started by qdideas · 9 months ago
4 years ago
Simply create a symbolic link under the "/tmp" directory BACK to the "mysql.sock" file. Make sure that it's worldwide read/write-able. To do so would be like this:
cd /tmp
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
Try it then -- if it is still having trouble, then you might have something else wrong; otherwise, this is because of the RPM installation that you might've used from Red Hat (aka "Fedora").
Just a friendly hint....cheers!
hg
4 years ago
1 year ago
:: QUOTE ::
YaST stops a little short of fully installing MySQL. ...
I checked the /var/lib/mysql/ directory only to find it empty! This directory is supposed to include the MySQL foundation files that are necessary to make it all work.
I found the following in the MySQL documentation:
1. Log in as the root user. ("Start" => "Switch User")
2. Open a terminal window (the icon that looks like a monitor behind a clamshell).
3. Type "cd /bin" enter (no quotes). :: usually not nessecary ::
4. Type "mysql_install_db --user=mysql
This is from: http://www.novell.com/coolsolutions/feature/595...
9 months ago
Simply create a symbolic link under the "/tmp" directory BACK to the "mysql.sock" file. Make sure that it's worldwide read/write-able. To do so would be like this:
cd /tmp
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
Try it then -- if it is still having trouble, then you might have something else wrong; otherwise, this is because of the RPM installation that you might've used from Red Hat (aka "Fedora").
Just a friendly hint....cheers!
hg</ul>
Actually, this helped tremendously. I am on OS X 10.5 and I don't seem to have a my.cnf file. However, when I tried to connect to mysql, I got the norm error can't connect to . . . through socket . . . "/var/mysql/mysql.sock". A quick search confirmed that /var/mysql/mysql.sock did not exist. I would not have known how to fix this (as a copy paste would not have worked for a socket file) so your post was the solution I implemented, creating a link in /var/mysql that targeted the /tmp/mysql.sock
Thanks!
crab
7 months ago
7 months ago
5 months ago
1. Log in as the root user. ("Start" => "Switch User")
2. Open a terminal window (the icon that looks like a monitor behind a clamshell).
3. Type "cd /bin" enter (no quotes). :: usually not nessecary ::
4. Type "mysql_install_db --user=mysql
This is from: http://www.novell.com/coolsolutions/feature/595...
5 months ago
mysql_fetch_assoc();
/*as you can see the resource parameter of mysql_fetch_assoc(<$resource>)*/ is missing
do help please...!!!
4 months ago
The reason fo client is bad serwer name in "mysql_connect" function. For example database is:
"http://abc.def.ghi.com/mysql5/"
so you should use it properly like this:
mysql_connect("abc.def.ghi.com",...);
insted of not properly like this:
mysql_connect("http://abc.def.ghi.com/mysql5/",...);
4 months ago
mysql_connect("localhost",...);
not work
1 month ago
It came in real handy when the geniouses at opensuse broke an update of mysql to mysql-5.1.34-29.1 by putting the mysql.sock and mysqld.pid in /var/run/mysql instead of /var/lib/mysql as normal. Great quick fix was found here. In addition to /etc/my.cnf, the init script at /usr/sbin/rcmysql needed to be fixed as well.
Thanks
4 days ago
4 days ago
I try with de line:
mysql --socket=/var/lib/mysql/mysql.sock ...
but now the terminal list this error:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
would you can help me