Apache Friends Support Forum

It is currently 06. September 2010 03:04

All times are UTC + 1 hour




Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: 28. July 2006 20:44 
Offline

Joined: 26. July 2006 21:59
Posts: 23
Wiedmann wrote:
Well, the main problem is your install path.
Try:
Code:
/opt/app/wsqeai05c01/atlas/xampp/bin/mysqladmin --socket=/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock ping

(one line)

For PHP you can config the socket in "php.ini":
Code:
[MySQL]
mysql.default_socket = /opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock


Well I do not have root access, like most developers to the unix box and can not install to /opt, so i have to put it where I can :-)

I had that already set in my php.ini

The ping had the same error

If I look at the var/mysql the mysql.sock has --> mysql.sock=


Top
 Profile  
 
 Post subject:
PostPosted: 28. July 2006 20:47 
Offline
AF-Moderator

Joined: 01. February 2004 12:38
Posts: 17130
Location: Stuttgart / Germany
Quote:
The ping had the same error

It can't be the /same/ error...


Top
 Profile  
 
 Post subject:
PostPosted: 28. July 2006 20:50 
Offline

Joined: 26. July 2006 21:59
Posts: 23
Wiedmann wrote:
Quote:
The ping had the same error

It can't be the /same/ error...



hawk@wsqeai05-> /opt/app/wsqeai05c01/atlas/xampp/bin/mysqladmin --socket=/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock ping
/opt/app/wsqeai05c01/atlas/xampp/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock' exists!


Top
 Profile  
 
 Post subject:
PostPosted: 28. July 2006 20:58 
Offline
AF-Moderator

Joined: 01. February 2004 12:38
Posts: 17130
Location: Stuttgart / Germany
You can see: The path in the two messages are different ;-)


But I don't know why we have this message:
Quote:
'Can't connect to local MySQL server through socket '/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock' (2)'


Because:
Quote:
hawk 13573 0.0 0.126168 7752 pts/10 S 14:38:37 0:00 /opt/app/wsqeai05c01/atlas/xampp/sbin/mysqld --defaults-file=/opt/app/wsqeai05c01/atlas/xampp/etc/my.cnf --basedir=/opt/app/wsqeai05c01/atlas/xampp --datadir=/opt/app/wsqeai05c01/atlas/xampp/var/mysql --pid-file=/opt/app/wsqeai05c01/atlas/xampp/var/mysql/wsqeai05.pid --port=3306 --socket=/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock


And you told us the socket exists:
Quote:
If I look at the var/mysql the mysql.sock has --> mysql.sock=


Maybe we have to wait for Oswald...


Top
 Profile  
 
 Post subject:
PostPosted: 28. July 2006 21:18 
Offline

Joined: 26. July 2006 21:59
Posts: 23
Wiedmann wrote:
You can see: The path in the two messages are different ;-)


But I don't know why we have this message:
Quote:
'Can't connect to local MySQL server through socket '/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock' (2)'


Because:
Quote:
hawk 13573 0.0 0.126168 7752 pts/10 S 14:38:37 0:00 /opt/app/wsqeai05c01/atlas/xampp/sbin/mysqld --defaults-file=/opt/app/wsqeai05c01/atlas/xampp/etc/my.cnf --basedir=/opt/app/wsqeai05c01/atlas/xampp --datadir=/opt/app/wsqeai05c01/atlas/xampp/var/mysql --pid-file=/opt/app/wsqeai05c01/atlas/xampp/var/mysql/wsqeai05.pid --port=3306 --socket=/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock


And you told us the socket exists:
Quote:
If I look at the var/mysql the mysql.sock has --> mysql.sock=


Maybe we have to wait for Oswald...



Maybe I am getting confussed what should the entry be for mysql.sock= ?


Top
 Profile  
 
 Post subject: reinstalled xampp
PostPosted: 28. July 2006 21:39 
Offline

Joined: 26. July 2006 21:59
Posts: 23
Ok I reinstalled xampp and only changed the entries to start apache and I still have the same problem. Just wanted to cleanup in case I made some other changes that might have affected it. So I still get

#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)


Top
 Profile  
 
 Post subject:
PostPosted: 28. July 2006 21:44 
Offline
AF-Moderator

Joined: 01. February 2004 12:38
Posts: 17130
Location: Stuttgart / Germany
Quote:
what should the entry be for mysql.sock= ?

Sorry, don't unterstand.
You told me you have this file:
Quote:
/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock

That's all. And exactly this string you must have in "php.ini" (and maybe config.inc.php)

BTW:
The "=" is just the sign for a socket in a directory listing with ls.
--> man ls

But you remember?
Wiedmann wrote:
Is there a log file for MySQL somewhere?

Have you found something?


Top
 Profile  
 
 Post subject:
PostPosted: 28. July 2006 22:30 
Offline

Joined: 26. July 2006 21:59
Posts: 23
Wiedmann wrote:
Quote:
what should the entry be for mysql.sock= ?

Sorry, don't unterstand.
You told me you have this file:
Quote:
/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock

That's all. And exactly this string you must have in "php.ini" (and maybe config.inc.php)

BTW:
The "=" is just the sign for a socket in a directory listing with ls.
--> man ls

But you remember?
Wiedmann wrote:
Is there a log file for MySQL somewhere?

Have you found something?



dir list of var/mysql
drwx------ 2 hawk hawk 512 Feb 18 2004 cdcol/
drwx------ 2 hawk hawk 1536 Nov 27 2005 mysql/
srwxrwxrwx 1 hawk hawk 0 Jul 28 16:36 mysql.sock=
drwx------ 2 hawk hawk 512 Feb 18 2004 test/
-rw-r----- 1 hawk hawk 357 Jan 8 2006 ultra10.err
-rw-rw---- 1 hawk hawk 685 Jul 28 16:36 wsqeai05.err
-rw-rw---- 1 hawk hawk 6 Jul 28 16:36 wsqeai05.pid

The wsqeai05.err has:
060728 16:36:13 mysqld started
060728 16:36:13 [Note] /opt/app/wsqeai05c01/atlas/xampp/sbin/mysqld: ready for connections.
Version: '5.0.18' socket: '/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock' port: 3306 Source distribution

in /logs:

erro.log:

[Fri Jul 28 16:36:12 2006] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jul 28 16:36:12 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Fri Jul 28 16:36:15 2006] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Jul 28 16:36:15 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Fri Jul 28 16:36:15 2006] [notice] Apache/2.2.0 (Unix) PHP/5.1.1 DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a configured -- resuming normal operations



I redid the ping and I get:

hawk@wsqeai05-> /opt/app/wsqeai05c01/atlas/xampp/bin/mysqladmin --socket=/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock ping
mysqld is alive


Top
 Profile  
 
 Post subject:
PostPosted: 01. August 2006 02:10 
Offline

Joined: 26. July 2006 21:59
Posts: 23
No other ideas????


Top
 Profile  
 
 Post subject:
PostPosted: 01. August 2006 02:30 
Offline
AF-Moderator

Joined: 01. February 2004 12:38
Posts: 17130
Location: Stuttgart / Germany
Quote:
hawk@wsqeai05-> /opt/app/wsqeai05c01/atlas/xampp/bin/mysqladmin --socket=/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock ping
mysqld is alive

Sorry, I must have overlook this part, the first time I read your anwser...

Ok, MySQL is working :-)

Now open phpinfo() with: http://localhost/xampp/phpinfo.php

There is a section about MySQL. Can you copy 'n paste this section?


Top
 Profile  
 
 Post subject:
PostPosted: 01. August 2006 02:42 
Offline

Joined: 26. July 2006 21:59
Posts: 23
Wiedmann wrote:
Quote:
hawk@wsqeai05-> /opt/app/wsqeai05c01/atlas/xampp/bin/mysqladmin --socket=/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock ping
mysqld is alive

Sorry, I must have overlook this part, the first time I read your anwser...

Ok, MySQL is working :-)

Now open phpinfo() with: http://localhost/xampp/phpinfo.php

There is a section about MySQL. Can you copy 'n paste this section?


I see it is trying to get the mysql.sock from root!

MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.18
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /opt/xampp/var/mysql/mysql.sock
MYSQL_INCLUDE -I/opt/xampp/include/mysql
MYSQL_LIBS -L/opt/xampp/lib/mysql -lmysqlclient

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off


Top
 Profile  
 
 Post subject:
PostPosted: 01. August 2006 12:07 
Offline
AF-Moderator

Joined: 01. February 2004 12:38
Posts: 17130
Location: Stuttgart / Germany
Quote:
I see it is trying to get the mysql.sock from root!
Code:
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /opt/xampp/var/mysql/mysql.sock
MYSQL_INCLUDE -I/opt/xampp/include/mysql
MYSQL_LIBS -L/opt/xampp/lib/mysql -lmysqlclient

These are the configure settings during the build. So it's correct. But:
Quote:
mysql.default_socket no value no value

Why have "mysql.default_socket" no value?

Because:
steves wrote:
Wiedmann wrote:
For PHP you can config the socket in "php.ini":
Code:
[MySQL]
mysql.default_socket = /opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock

I had that already set in my php.ini

:?:


Top
 Profile  
 
 Post subject:
PostPosted: 01. August 2006 12:31 
Offline

Joined: 26. July 2006 21:59
Posts: 23
Wiedmann wrote:
Quote:
I see it is trying to get the mysql.sock from root!
Code:
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /opt/xampp/var/mysql/mysql.sock
MYSQL_INCLUDE -I/opt/xampp/include/mysql
MYSQL_LIBS -L/opt/xampp/lib/mysql -lmysqlclient

These are the configure settings during the build. So it's correct. But:
Quote:
mysql.default_socket no value no value

Why have "mysql.default_socket" no value?

Because:
steves wrote:
Wiedmann wrote:
For PHP you can config the socket in "php.ini":
Code:
[MySQL]
mysql.default_socket = /opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock

I had that already set in my php.ini

:?:


In php.ini:

Code:

[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysql.default_socket = "/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock"

; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host = "localhost"

; Default user for mysql_connect() (doesn't apply in safe mode).
mysql.default_user =


In my config.inc.php

Code:
[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent = On

; Maximum number of persistent links.  -1 means no limit.
mysql.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
mysql.max_links = -1

; Default port number for mysql_connect().  If unset, mysql_connect() will use
; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
; compile-time value defined MYSQL_PORT (in that order).  Win32 will only look
; at MYSQL_PORT.
mysql.default_port =

; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysql.default_socket = "/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock"

; Default host for mysql_connect() (doesn't apply in safe mode).
mysql.default_host = "localhost"

; Default user for mysql_connect() (doesn't apply in safe mode).
mysql.default_user =


????


Top
 Profile  
 
 Post subject:
PostPosted: 01. August 2006 13:00 
Offline
AF-Moderator

Joined: 01. February 2004 12:38
Posts: 17130
Location: Stuttgart / Germany
Quote:
In php.ini:
Code:
[MySQL]
; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysql.default_socket = "/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock"

This is from the "php.ini" that PHP used? See at the beginning of phpinfo().

BTW:
You have restarted Apache after the change?


Top
 Profile  
 
 Post subject:
PostPosted: 01. August 2006 13:46 
Offline

Joined: 26. July 2006 21:59
Posts: 23
Wiedmann wrote:
Quote:
In php.ini:
Code:
[MySQL]
; Default socket name for local MySQL connects.  If empty, uses the built-in
; MySQL defaults.
mysql.default_socket = "/opt/app/wsqeai05c01/atlas/xampp/var/mysql/mysql.sock"

This is from the "php.ini" that PHP used? See at the beginning of phpinfo().

BTW:
You have restarted Apache after the change?


The php.ini is from -> /opt/app/wsqeai05c01/atlas/xampp/etc/php.ini

Yes I restarted.

I also added the path in mysql.server

# If you change base dir, you must also change datadir. These may get
# overwritten by settings in the MySQL configuration files.

basedir=/opt/app/wsqeai05c01/atlas/xampp
datadir=/opt/app/wsqeai05c01/atlas/xampp/var/mysql

This did not help either


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 36 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group