Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Server Platforms
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Server Platforms
Discussion regarding any server based ubuntu release.

 
Thread Tools Display Modes
Old January 2nd, 2006   #1
stuffradio
Just Give Me the Beans!
 
Join Date: Jun 2005
Beans: 46
local mysql server

Hey, I am getting an error when I try and start mysql. The error is,

ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I had done something with the tutorial found here:
http://www.howtoforge.com/perfect_setup_ubuntu_5.10

One of those pages I had to move some files and I think that's what's causing the problem. And there are no files in /var/run/mysqld/ please help me.
stuffradio is offline   Reply With Quote
Old January 2nd, 2006   #2
jocke1s
First Cup of Ubuntu
 
Join Date: Sep 2005
Beans: 4
Re: local mysql server

http://www.apachefriends.org/en/xampp-linux.html
jocke1s is offline   Reply With Quote
Old January 2nd, 2006   #3
stuffradio
Just Give Me the Beans!
 
Join Date: Jun 2005
Beans: 46
Re: local mysql server

... that doesn't fix my problem, haha. That just gives me some other piece of software, I need mysql fixed not apache.
stuffradio is offline   Reply With Quote
Old January 2nd, 2006   #4
paddyg
A Carafe of Ubuntu
 
paddyg's Avatar
 
Join Date: Oct 2005
Beans: 129
Ubuntu 6.06 Dapper
Re: local mysql server

If there is no mysqld.sock, this means the MySQL server is not running.

Just take a look at the socket line in /etc/mysql/my.cnf, which tells you where the socket file must be. Just check out, if there is no socket file the server is not running.
paddyg is offline   Reply With Quote
Old January 3rd, 2006   #5
stuffradio
Just Give Me the Beans!
 
Join Date: Jun 2005
Beans: 46
Re: local mysql server

is there a way I can make a mysqld.sock file, or should I reinstall mysql
stuffradio is offline   Reply With Quote
Old January 3rd, 2006   #6
paddyg
A Carafe of Ubuntu
 
paddyg's Avatar
 
Join Date: Oct 2005
Beans: 129
Ubuntu 6.06 Dapper
Re: local mysql server

Just try and start the server, and it should make both mysqld.pid and mysqld.sock in /var/run/mysqld. To do that, just invoke the script mysqld_safe in /usr/bin.
Good luck.
paddyg is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:32 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry