LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-13-2017, 05:14 PM   #1
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 248

Rep: Reputation: 24
can't connect to mysql virtual server unless I rm /etc/udev/rules.d/*


Like the subject hints at I can't ping or mysql my mysql server unless I delete the file in rules.d/ and then reboot. I'm guessing this is related to the fact that the virtual disk is located on my SD card and I use it in multiple computers. I'm just not familiar enough with the inner workings of udev to figure out a more permanent solution. I've tried /etc/rc.d/rc.udev force-restart, but that doesn't help.

Once I delete the contents of rules.d/ and reboot, everything works fine. But I'd rather just have to boot up my virtual slack once. (I'm using VirtualBox.)
 
Old 11-13-2017, 05:52 PM   #2
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,563

Rep: Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500
Can you post the rules that are in there before you delete them? And do you get any errors with mysql or other logs?
 
Old 11-14-2017, 04:47 PM   #3
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 248

Original Poster
Rep: Reputation: 24
Here's the logs/files.

The best I can think of is that it expects the same mac address, but then breaks when it isn't the same one.
Attached Thumbnails
Click image for larger version

Name:	screenshot_1510695651.png
Views:	18
Size:	20.8 KB
ID:	26306   Click image for larger version

Name:	screenshot_1510695696.png
Views:	18
Size:	27.1 KB
ID:	26307  
 
Old 11-14-2017, 06:02 PM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,704

Rep: Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998Reputation: 998
If you want to connect to MySQL/MariaDB server via network, you need to edit /etc/rc.d/rc.mysqld
Code:
# To allow outside connections to the database comment out the next line.
# If you don't need incoming network connections, then leave the line
# uncommented to improve system security.
#SKIP="--skip-networking"
 
1 members found this post helpful.
Old 11-15-2017, 01:56 AM   #5
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 248

Original Poster
Rep: Reputation: 24
That line doesn't exist in my.cnf. And I can connect to it, it's just that I have to delete the contents of /etc/udev/rules.d/ and reboot then wait a minute or two.

It's not just mysql. I can't ping it either, unless I do the above steps. It may be that that's just what I'm going to have to do.
 
Old 11-15-2017, 04:38 PM   #6
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,563

Rep: Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500Reputation: 2500
Since the MAC address is constantly changing, you might be able to replace that with a wildcard... however, I don't know how well this would work on a system with multiple NICs.

Code:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="*", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
udev: Making rules for device with multiple virtual USB-Serial Ports damien_d Linux - Hardware 1 07-12-2009 12:28 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 04:35 PM
slackware-current, udev 0.96, and custom udev rules not working rignes Slackware 6 08-10-2006 04:43 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration