Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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..
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.