text 码头配置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 码头配置相关的知识,希望对你有一定的参考价值。

valet stop
composer create-project laravel/laravel doc --prefer-dist
cd doc
code .

DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=doc
DB_USERNAME=root
DB_PASSWORD=root

git clone https://github.com/Laradock/laradock.git
cd laradock
cp env-example .env
docker-compose up -d nginx mysql phpmyadmin redis workspace
docker ps

// Also, you can restart your containers using the following command.
docker restart $(docker ps -q)
// You can kill all the containers using the following command.
docker kill $(docker ps -a -q)
// You can stop all the containers using the following command.
docker stop $(docker ps -aq)
// Now, again restart your container, if you have stopped your container.
docker-compose up -d nginx mysql phpmyadmin


docker-compose exec workspace bash
php artisan migrate


when it won't migrate and you can't access to db : 
docker-compose exec mysql bash
mysql -u root -p

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
ALTER USER 'default'@'%' IDENTIFIED WITH mysql_native_password BY 'secret';

以上是关于text 码头配置的主要内容,如果未能解决你的问题,请参考以下文章

text 码头工人开始了

text 建立码头图像

text splunk码头工人

text 麋鹿码头

text 码头工人sed

text 码头医学