[Laravel] MySQL 8.0 이상 인증 오류 해결

[Laravel] MySQL 8.0 이상 인증 오류 해결

~ / Documents / Workspace / PHP / myapp2 > mysql - uroot - p

mysql > ALTER USER 'homestead' IDENTIFIED WITH mysql_native_password BY 'secret' ;

Query OK, 0 rows affected ( 0. 08 sec)

mysql > quit;

Bye

~ / Documents / Workspace / PHP / myapp2 > brew services restart mysql

Stopping `mysql` ... (might take a while)

= = > Successfully stopped `mysql` (label: homebrew.mxcl.mysql)

= = > Successfully started `mysql` (label: homebrew.mxcl.mysql)

~ / Documents / Workspace / PHP / myapp2 > php artisan tinker

Psy Shell v0. 9. 8 (PHP 7. 1. 16 — cli) by Justin Hileman

> > > DB:: select ( "SELECT * from posts" );

from http://itchipmunk.tistory.com/316 by ccl(A) rewrite - 2020-03-06 11:54:49

댓글

이 블로그의 인기 게시물

[PHP] 라라벨 루멘 DB문서 자동화

[Laravel] multiple Database using

Laravel(라라벨) Homestead 사용하기