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.) |
Can you post the rules that are in there before you delete them? And do you get any errors with mysql or other logs?
|
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. |
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. |
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. |
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. |