[PROMOÇÃO] Assine com + 30% de desconto ANUAL MENSAL (últimas horas)
ROGéRIO FELICIANO
Criador ROGéRIO FELICIANO 05/01/2020
[2020-01-05 12:25:44] local.ERROR: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (SQL: select * from information_schema.tables where table_schema = repositories and table_name = migrations) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2054): SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
Manager Carlos Ferreira 05/01/2020

Olá Rogério!
Tudo bem?

Preciso de mais detalhes do erro para poder te ajudar.

Qual ambiente usou, Docker, Vagrant, outros?

Quais dados informou para acessar o banco de dados?

Me dê mais informações (prints: https://imgur.com/upload)

Carlos Ferreira
Criador ROGéRIO FELICIANO 05/01/2020

Acho que não está havendo comunicação entre mysql e o processos. Engraçado que quando verifiquei não encontrei o mysql no pelo comando : docker network inspect laradock_backend

[ { "Name": "laradock_backend", "Id": "7d04948fd8d95a4f51ebb2086281f36b90d6cdd603aa1fe0d1d11485d44de436", "Created": "2020-01-07T09:34:46.183054926-03:00", "Scope": "local", "Driver": "bridge", "EnableIPv6": false, "IPAM": { "Driver": "default", "Options": null, "Config": [ { "Subnet": "172.22.0.0/16", "Gateway": "172.22.0.1" } ] }, "Internal": false, "Attachable": true, "Ingress": false, "ConfigFrom": { "Network": "" }, "ConfigOnly": false, "Containers": { "1237db29238faa293697c1582aed2f7eca6bf40e58d562cb128ee163e2c6d57f": { "Name": "laradock_docker-in-docker_1", "EndpointID": "6776c298933d4e468fa3cc055d6cc8a9368035bb0d271bfb9ac29631e0a211d1", "MacAddress": "02:42:ac:16:00:03", "IPv4Address": "172.22.0.3/16", "IPv6Address": "" }, "2cf0f50856e795c0ff7d8c1988ad9b7087e0e3684aefa625482285120317b822": { "Name": "laradock_phpmyadmin_1", "EndpointID": "83073022c85d008c26bf42ade6e26430a58a67faa9d9c67be0fc7d6cb7b9d8b3", "MacAddress": "02:42:ac:16:00:02", "IPv4Address": "172.22.0.2/16", "IPv6Address": "" }, "41f8b6ccd87d7dc4792675453cba0d629661a50a029a51178be776c8fcabb3d1": { "Name": "laradock_php-fpm_1", "EndpointID": "a304ed24c88a3c71c24bb4f31176ccf062c3a2d8e2d1e49df345e639616e4556", "MacAddress": "02:42:ac:16:00:05", "IPv4Address": "172.22.0.5/16", "IPv6Address": "" }, "879ed4e0854d1b8144d9b5834c20672d7589dcca6e61bdd1984ca52282ae6d4d": { "Name": "laradock_nginx_1", "EndpointID": "93a2bd9549dae0a88e6398cbfebdae21771f441af42499205c1f653cd0232a1e", "MacAddress": "02:42:ac:16:00:06", "IPv4Address": "172.22.0.6/16", "IPv6Address": "" }, "b7cda1f279400551801ccd1f1771e111b91f0cdcaa618f7f675e9f33cca8858b": { "Name": "laradock_workspace_1", "EndpointID": "61b7f18922065667d07ff33c36f26c354a4605ee89d24203f5f5ad59a690c564", "MacAddress": "02:42:ac:16:00:04", "IPv4Address": "172.22.0.4/16", "IPv6Address": "" } }, "Options": {}, "Labels": { "com.docker.compose.network": "backend", "com.docker.compose.project": "laradock", "com.docker.compose.version": "1.25.0" } } ]

 

Este erro eu resolvi. Agora eu estou enfrentado outro:

https://imgur.com/gallery/ZVzL9MU

mysqli::real_connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known
 mysqli::real_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known
ROGéRIO FELICIANO
Manager Carlos Ferreira 05/01/2020

O seu container do MySQL está rodando?
docker ps

(no path do Laradock)docker-compose ps

Quando criou os containers, definiu a versão do mysql para 5.7 no arquivo .env?
Aguardo mais detalhes para poder te ajudar amigo.

Carlos Ferreira
Criador ROGéRIO FELICIANO 05/01/2020

Obrigado Carlos!

Por enquanto resolvi. Estou engatinhando no linux e docker. Abondei radicalmente o windows e depois de reinstalar o linux 4 vezes, limpando a inslação do docker e docker-compose, posso voltar ao curso laravel ( repositories ), mas aprendi muito tentando corrigir os erros!

Valeu!!

 

ROGéRIO FELICIANO
Manager Carlos Ferreira 05/01/2020

Parabéns!

Abs;

Carlos Ferreira
Sabe a Solução? Ajude a resolver!

Precisa estar logado para conseguir responder a este ticket!

Clique Aqui Para Entrar!