Hello.
I installed AlmaLinux 9. all good.
I installed LAMP as a WEB server stack with MySQL using this guide
and
Also, all good, until…
I whant to connect from a web page to a MySQL database as user with all rights on database.
That didn’t work anymore!
I can connect by localhost, but NOT by the static IP set for the server.
I opened the port and the service on TCP in Firewal-cmd, I put bind-address for the server that IP, I even set all the rights for ‘user’ @ ‘%’ although I would have wanted only for a certain IP, but still no go.
I am stuck!
Has anyone had this problem before?
Or can someone help with a new idea?
PS. I run AlmaLinux in a VirtualBox vm under a Windows server. (if it matters)
I don’t remember the details of my MySQL days, but you need to make the server respond to localhost or 127.0.0.1 or the LAN IP of your box. I’m assuming it’s the same machine. Read up on those files.
3306 allowed
Second:
In mysql log I find this after a coonect try: 2022-07-02T11:44:09.780416Z 39 [Warning] [MY-010055] [Server] IP address ‘172.22.224.2’ could not be resolved: Name or service not known
No ideea whay!!! the IP is allowed in firewall as source “sources: 194.105.7.16 172.22.224.2 95.76.0.137”, user exist on host.
Stuck and stuck.
Everything seems ok but it doesn’t connect.
It’s something very strange. I followed all the steps, the checks give correct results, except for connecting to databases on the LAN.
I think I will try another version of linux.
Anyway, thanks for your help.
Good luck! (To me, It seems necessary when I do some administrator work )