- 拉取鏡像
docker pull docker.io/georce/lepus
docker run -id --name lepus -p 81:80 imageid
docker exec -it lepus bash
mysql -uroot -p
直接回車,密碼爲空,需要自己另外設置密碼
修改密碼:
use mysql
update user set password=password('xxx') where user='root' and host='localhost'
flush privileges;
記得修改php裏的連接密碼
- ip:port,ip+端口訪問,默唸用戶名密碼 admin/Lepusadmin
- php 代碼在 /var/www/html/ 目錄,在
/var/www/html/application/views/profile/index.php
這個文件密碼的 input 的 readonly去掉纔可以修改密碼 - 修改web默唸超級用戶登錄密碼
use lepus
update admin set password=md5('xxx') where user_id=1