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.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

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
Old January 3rd, 2006   #7
stuffradio
Just Give Me the Beans!
 
Join Date: Jun 2005
Beans: 46
Re: local mysql server

That still doesn't fix it :'(
stuffradio is offline   Reply With Quote
Old January 3rd, 2006   #8
paddyg
A Carafe of Ubuntu
 
paddyg's Avatar
 
Join Date: Oct 2005
Beans: 129
Ubuntu 6.06 Dapper
Re: local mysql server

What do you mean---
1. the server isn't running and you can't start it?
2. the server is running and you can't find mysqld.sock?

As for
1. If /usr/bin/mysqld_safe doesn't start the server, in terminal (a very uncommon method, though) type
Code:
sudo mysqld
Or just check out System-->Administration-->Services and tick off the Database server (mysql) entry.

2. What does the [mysqld] section in /ect/mysql/my.cnf read?
paddyg is offline   Reply With Quote
Old January 3rd, 2006   #9
stuffradio
Just Give Me the Beans!
 
Join Date: Jun 2005
Beans: 46
Re: local mysql server

that's another thing, in that install it doesn't install the gui for like gnome, etc. so I am stuck in command line and when i type start x it says: "bash: start: command not found and when I type startx it says:
/etc/X11/xinit/xerverrc: line 2: /urs/bin/X11/X: No such file or directory
/etc/X11/xinit/xserverrc: line 2: exec: /urs/bin/X11/X: cannot execute: No such file or directory

Also for mysql there might be a process running on port 3306 but don't know how to find out and kill it.
stuffradio is offline   Reply With Quote
Old January 3rd, 2006   #10
paddyg
A Carafe of Ubuntu
 
paddyg's Avatar
 
Join Date: Oct 2005
Beans: 129
Ubuntu 6.06 Dapper
Re: local mysql server

You can use the following to learn about processes
Code:
ps -A
And you should look for mysqld among them.
If you want to kill a process
Code:
sudo kill processPID
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 02:05 AM.


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