LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-27-2008, 02:21 PM   #1
yxz97
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Rep: Reputation: 0
MySQLServer5.0.51b on Slackware12.1


I have installed MySQL Server, version which comes with Slackware 12.1, and I wanted to allow external machines connect to it. Slackware 12.1 has a default configuration to not allow such connections however I needed so in the start-up script /etc/rc.d/rc.mysql there is a option, given that constraint this function --skip-networking I have already commented such line to allow the connection from remote computers to this MySQL data base instance.

By other hand, after have enable remote connections, at the booting process in Slackware 12.1 I cannot reach the log-in prompt, I reach to see the line which says: starting mysql with /var/lib/mysql but until here, nothing more happens and the system, get "stuck", "freeze" not continue loading.

-1 Did I made something wrong to enable remote connections in MySQL that comes with this Slackware ? How must be do it ?

-2 How can I fix this issue?

Kind regards,
 
Old 10-27-2008, 02:46 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Near the top of rc.mysqld, there is information on how to initialize the server.
 
Old 10-27-2008, 10:46 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
MySQL by default only sets up localhost connections. You need to add user accounts that specify the hostname or IP address in the mysql database. This isn't a Slackware specific issue but rather MySQL defaults.

Something like this would allow connections from a remote IP Address say if my MySQL server is using 192.168.100.50:

mysql> grant all privileges on *.* from 'user@192.168.100.100' identified by 'you-password';

Now go read the MySQL docs to learn more about user administration and locking it down. You don't want to open MySQL connections to everyone, that's a bad security idea..
 
Old 10-28-2008, 01:23 AM   #4
yxz97
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Arrow

Quote:
Originally Posted by trickykid View Post
MySQL by default only sets up localhost connections. You need to add user accounts that specify the hostname or IP address in the mysql database. This isn't a Slackware specific issue but rather MySQL defaults.

Something like this would allow connections from a remote IP Address say if my MySQL server is using 192.168.100.50:

mysql> grant all privileges on *.* from 'user@192.168.100.100' identified by 'you-password';

Now go read the MySQL docs to learn more about user administration and locking it down. You don't want to open MySQL connections to everyone, that's a bad security idea..
My major concern is not the data base connection right, is that MySQL seems like not able to startup at the Slackware booting, thank you
 
Old 10-28-2008, 01:26 AM   #5
yxz97
LQ Newbie
 
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Arrow

Quote:
Originally Posted by Berhanie View Post
Near the top of rc.mysqld, there is information on how to initialize the server.
I have everything as is required by the comments in this script
mysql_install_db was execute
user mysql and permissions on /var/lib/mysql/ directory

What happends if I try to run mysql_secure_installation with all my data base already created with data too ? Will I lost everything ? thank you
 
Old 10-28-2008, 04:36 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by yxz97 View Post
I have everything as is required by the comments in this script
mysql_install_db was execute
user mysql and permissions on /var/lib/mysql/ directory

What happends if I try to run mysql_secure_installation with all my data base already created with data too ? Will I lost everything ? thank you
Not that I know of. The installation scripts with MySQL only create the default mysql database and test databases. If there are existing databases, I believe they leave them intact. But always back them up just in case.
 
  


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
VLC 0.9.0 on SlackWare12 Zangai Slackware 7 04-13-2008 02:38 PM
How to Install Slackware12 using loopback verndog Slackware 7 10-07-2007 05:52 PM
LightScribe on Slackware12 magarus Slackware 4 08-23-2007 08:49 PM
Slackware12 programs are less then 11? lifeforce4 Slackware - Installation 2 07-12-2007 05:18 AM
SlackWare12 problem AG-Spider Slackware 11 07-11-2007 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:10 AM.

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