ping: cannot resolve db1: Unknown host

113
February 17, 2021, at 11:00 AM

I'm using macOS version : Catalina (10.15.6).

I'm trying to connect the mysql instances to create an InnoDB cluster. When i try to ping to check the connection, it gives me the error "cannot resolve db1:Unknown host"

"ping localhost" works fine. But the changes made including new hosts are not reflected

I have edited my hosts file in /private/etc

Contents of the hosts file :

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
192.168.z.xyz   db1
192.168.x.xyz   db2
::1             localhost
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
~                                                                               
"hosts" 11L, 238C

P.S : .z.xyz is simply an example for any IP addresses i try!

READ ALSO
Insert a date to MySQL with php is always 0000-00-00

Insert a date to MySQL with php is always 0000-00-00

I'm trying to insert date_start and date_end fields into MySQL 80

75
How to display the date field in input box after submitting the form in javascript?

How to display the date field in input box after submitting the form in javascript?

I need to display the user-selected date in the input box on the same page once the form gets submittedI was referring this link and if I try to implement the same in my code, my form is not getting submitted and am not able to see the desired output

85
BMI Calculator program with Tkinter()

BMI Calculator program with Tkinter()

I want to create a BMI calculator program with Tkinter but I'm stuck at calculation procedure I use StringVar() to keep user data to calculate but I don't know how to calculate

94