![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
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 |
|
|
#1 |
|
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. |
|
|
|
|
|
#2 |
|
First Cup of Ubuntu
![]() Join Date: Sep 2005
Beans: 4
|
Re: local mysql server
|
|
|
|
|
|
#3 |
|
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.
|
|
|
|
|
|
#4 |
|
A Carafe of Ubuntu
![]() 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. |
|
|
|
|
|
#5 |
|
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
|
|
|
|
|
|
#6 |
|
A Carafe of Ubuntu
![]() 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. |
|
|
|
|
|
#7 |
|
Just Give Me the Beans!
![]() Join Date: Jun 2005
Beans: 46
|
Re: local mysql server
That still doesn't fix it :'(
|
|
|
|
|
|
#8 |
|
A Carafe of Ubuntu
![]() 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 2. What does the [mysqld] section in /ect/mysql/my.cnf read? |
|
|
|
|
|
#9 |
|
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. |
|
|
|
|
|
#10 |
|
A Carafe of Ubuntu
![]() 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 If you want to kill a process Code:
sudo kill processPID |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|