Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th February 2009, 01:12
sighkick sighkick is offline
Junior Member
 
Join Date: Feb 2009
Posts: 25
Thanks: 5
Thanked 5 Times in 2 Posts
Question MySQL listen all interfaces [ISPConfig 3]

The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 3] - Page 3

vi /etc/mysql/my.cnf - the lines containing:

[...]
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address = 127.0.0.1
[...]

Are not included in the file: - Am I doing something wrong?

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/se...variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0

[mysqld]
#
# * Basic Settings
"/etc/mysql/my.cnf" 143L, 3865C 1,1 Top

I now get

zeus:~# netstat -tap | grep mysql
tcp 0 0 localhost.localdo:mysql *:* LISTEN 16563/mysqld

Which is not what the Howto suggests.

How do I edit out the localhost so that MySQL listens on all ports?

Last edited by sighkick; 28th February 2009 at 01:20. Reason: Added more information
Reply With Quote
Sponsored Links
  #2  
Old 28th February 2009, 12:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,486
Thanks: 813
Thanked 5,256 Times in 4,121 Posts
Default

And you are really sure that you are using debian etch?

Please post the output of:

grep bind-address /etc/mysql/my.cnf
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th February 2009, 23:23
sighkick sighkick is offline
Junior Member
 
Join Date: Feb 2009
Posts: 25
Thanks: 5
Thanked 5 Times in 2 Posts
Question Debian Etch? - This thread is Debian Lenny ?

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Feb 28 12:12:11 2009 from 192.168.1.99
zeus:~# grep bind-address /etc/mysql/my.cnf
bind-address = 127.0.0.1


Bind address is clearly localhost and not ALL as suggested in the Howto.

p.s. I try to follow the Howto word-for-word so I suppose I can be considered a beta tester of the instructions.

I am definitely NOT using ETCH - can you help to bind to ALL please?
Reply With Quote
  #4  
Old 1st March 2009, 11:58
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,486
Thanks: 813
Thanked 5,256 Times in 4,121 Posts
Default

You have to comment out the line as the tutorial describes, so find the line:

bind-address = 127.0.0.1

and change it to:

# bind-address = 127.0.0.1

and then restart mysql.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 1st March 2009, 12:41
sighkick sighkick is offline
Junior Member
 
Join Date: Feb 2009
Posts: 25
Thanks: 5
Thanked 5 Times in 2 Posts
Default Thanks Till but.........

As stated above, I have printed out my.cnf and

It does not contain the line bind-address = 127.0.0.1 so it becomes rather difficult to comment out a line that is not there!

I will have a look again before I revert to ISPConfig 2 - as you suggested in another thread, ISPConfig3 is not fully finished yet and there is no indication when it may be stable.
Reply With Quote
  #6  
Old 1st March 2009, 12:51
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,486
Thanks: 813
Thanked 5,256 Times in 4,121 Posts
 
Default

Take a look at post #3 and you see that you already confirmed that it contains the line So take a closer look at it and change it!

Quote:
I will have a look again before I revert to ISPConfig 2 - as you suggested in another thread, ISPConfig3 is not fully finished yet and there is no indication when it may be stable.
You have to find and change the exact same line for ispconfig 2 as well, so that makes no difference.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL problem satimis Server Operation 5 25th June 2008 15:41
Management/system config/settings & /server/settings not working!! dactor Installation/Configuration 9 6th February 2008 09:11
Virtual Users and Domains with Postfix ... (FC5) remstedt HOWTO-Related Questions 23 13th December 2006 13:56
Postfix POP request approx 30 sec (Mozilla...) dreamed Server Operation 3 16th February 2006 00:03
pop3 login stefanr Installation/Configuration 10 2nd January 2006 10:08


All times are GMT +2. The time now is 05:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.