LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-19-2007, 04:33 PM   #1
Fill
Member
 
Registered: Jun 2007
Posts: 96

Rep: Reputation: 16
MySQL server request


Hi I'm buildind a MySQL server and I've been following a tutorial to help me building it.

At certain point of that tutorial, after the server installation part, it is said:

Quote:
Now you need to configure MySQL to listen on all interfaces, not just localhost for this you need to edit /etc/mysql/my.cnf and comment out the line bind-address = 127.0.0.1 save and exit the file.

#vi /etc/mysql/my.cnf

#bind-address = 127.0.0.1
I didn't understand quite well what is that for. Isn't my server get vulnerable by doing that?

Do I really have to do that? And what is it for?
 
Old 12-19-2007, 05:03 PM   #2
bbfuller
Member
 
Registered: Dec 2007
Location: UK
Distribution: Mageia, MX, Manjaro, OpenSuSE, PCLinuxOS
Posts: 214

Rep: Reputation: 35
MySQL is intended to be a database for many uses including some very intensive network ones where it may be connected to from many other machines.

If you are going to use it on a single machine then I would doubt there is any need to alter that line.

In fact, the whole line bind-address doesn't occur in my "my.cnf" and it works very well.

Depends I suppose where you got your mysql from. I've found that if you get a version that is in the repositories of your distribution - you don't say which you are using but I assume yours does - then the database is usually compiled to only work on one machine unless you have a need to specifically to open it up further.

As you rightly surmise, the more you open up the greater the risk.
 
Old 12-20-2007, 02:13 AM   #3
Fill
Member
 
Registered: Jun 2007
Posts: 96

Original Poster
Rep: Reputation: 16
Thanks,

the MySQL server is being created to run a forum database. And yes, I have used the MySQL server on my repositories, I'm using Debian.

So I think it won't be necessary to do that, because the forum users are not going to access the database itself from outside, they just post and the forum (which will be hosted on the same machine) will write on the database, am I right?

Thanks for your help
 
Old 12-20-2007, 03:36 AM   #4
bbfuller
Member
 
Registered: Dec 2007
Location: UK
Distribution: Mageia, MX, Manjaro, OpenSuSE, PCLinuxOS
Posts: 214

Rep: Reputation: 35
Hello Fill

That's beyond my level of expertise, but I would have thought that with a forum members are going to be logged into your web server and interacting with the database through forum software - unless you are doing the whole thing yourself with php.

That may well mean only the local machine accessing the database but you'll have a whole lot of very limited mysql users to cater for.

I'd be interested to hear sometime if that surmise is right.
 
Old 12-20-2007, 07:09 AM   #5
Fill
Member
 
Registered: Jun 2007
Posts: 96

Original Poster
Rep: Reputation: 16
Hi,

I read this on the conf file of MySQL

# 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

I think I'm not going to change it.

And yes, I am thinking like you: Users will login to my webserver and interact with the database via the forum software. No, I'm not doing php by myself, I'm using phpBB3. But in practice, what is going to access the database is the phpBB itself, and that is installed on the local machine, so the database access will only be local. It is even more secure.

See ya
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql server installation warning: mysql-server-4.1.10a-2.RHEL4.1.i386.rpm: V Buddhike G Linux - Software 3 09-07-2007 06:50 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Software 3 06-28-2007 11:46 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 03:35 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration