Saturday, October 3, 2020

[google-cloud-sql-discuss] google-cloud-sql: Name or service not known

Hye 
I want to connect mysql db with my php project I have created the db and uploaded the project but unable to get data or run any query Here is what I get the error when I var_dump my connection variable

object(mysqli)#1 (19) {
  ["affected_rows"]=>
  bool(false)
  ["client_info"]=>
  bool(false)
  ["client_version"]=>
  int(50012)
  ["connect_errno"]=>
  int(2002)
  ["connect_error"]=>
  string(71) "php_network_getaddresses: getaddrinfo failed: Name or service not known"
  ["errno"]=>
  bool(false)
  ["error"]=>
  bool(false)
  ["error_list"]=>
  bool(false)
  ["field_count"]=>
  bool(false)
  ["host_info"]=>
  bool(false)
  ["info"]=>
  bool(false)
  ["insert_id"]=>
  bool(false)
  ["server_info"]=>
  bool(false)
  ["server_version"]=>
  bool(false)
  ["stat"]=>
  bool(false)
  ["sqlstate"]=>
  bool(false)
  ["protocol_version"]=>
  bool(false)
  ["thread_id"]=>
  bool(false)
  ["warning_count"]=>
  bool(false)
}

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/28c2feed-bc21-44a3-8b73-4e7540a7d1c1n%40googlegroups.com.

No comments:

Post a Comment