LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   can't connect to mysql virtual server unless I rm /etc/udev/rules.d/* (https://www.linuxquestions.org/questions/slackware-14/cant-connect-to-mysql-virtual-server-unless-i-rm-etc-udev-rules-d-%2A-4175617559/)

hedron 11-13-2017 04:14 PM

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.)

bassmadrigal 11-13-2017 04:52 PM

Can you post the rules that are in there before you delete them? And do you get any errors with mysql or other logs?

hedron 11-14-2017 03:47 PM

2 Attachment(s)
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.

willysr 11-14-2017 05:02 PM

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"


hedron 11-15-2017 12:56 AM

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.

bassmadrigal 11-15-2017 03:38 PM

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"


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