Board index   FAQ   Search  
Register  Login
Board index php forum :: Database MySQL Installation

unable to connect through /tmp/mysql.sock

Installation and configuration iussues

Moderators: macek, egami, gesf

unable to connect through /tmp/mysql.sock

Postby nightfall_gr » Wed Oct 08, 2003 8:27 am

hello,

I have just installed apache 1.3.28/mysql 4.0.15a/php 4.3.3 in Mandrake linux 9.1 using the source files. Although Apache and php seem to work fine I have problems starting mysql. Whatever I try ( mysqld_safe, mysqld ) I get the message:
unable to connect to MYSQL through socket /tmp/mysql.sock

Why is this happening? What should I do?
Below is how I configured the source of mysql:

$CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti" \
CFLAGS="-O3" CC=gcc CXX=gcc ./configure --prefix=/usr \
--localstatedir=/var/lib/mysql \
--without-bench \
--without-debug \
--with-mysqld-user=mysql \
--enable-assembler \
--enable-thread-safe-client \
--with-client-ldflags=-all-static
nightfall_gr
New php-forum User
New php-forum User
 
Posts: 8
Joined: Mon Oct 06, 2003 2:21 pm
Location: Athens, Greece

Postby sigix » Thu Oct 09, 2003 2:52 am

better run the mysql deamon and then try
/etc/init.d/mysqld start
/etc/init.d/httpd start
sigix
php-forum Active User
php-forum Active User
 
Posts: 364
Joined: Mon Jul 14, 2003 9:39 pm
Location: /Earth/Xion

Postby nightfall_gr » Fri Oct 10, 2003 5:34 am

I've just realised that I don't have mysqld script, only mysqld_safe

Strange, isn't it? I tried to install the binary edition of MYSQL-4.0.15 and there wasn't mysqld either. However this time Mysql was loaded with mysqld_safe but only once. When I tried to restart it the same problem came up. I'm getting furious! :evil:
nightfall_gr
New php-forum User
New php-forum User
 
Posts: 8
Joined: Mon Oct 06, 2003 2:21 pm
Location: Athens, Greece

Postby sigix » Fri Oct 10, 2003 5:39 am

what problem it gave ..
error ?
sigix
php-forum Active User
php-forum Active User
 
Posts: 364
Joined: Mon Jul 14, 2003 9:39 pm
Location: /Earth/Xion

Postby nightfall_gr » Fri Oct 10, 2003 2:37 pm

sorry, the error was the same
"can't connect through socket /tmp/mysql.sock"
nightfall_gr
New php-forum User
New php-forum User
 
Posts: 8
Joined: Mon Oct 06, 2003 2:21 pm
Location: Athens, Greece


Return to MySQL Installation

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.