type
status
date
slug
summary
tags
category
icon
password

前提

📝本文使用的环境Ubuntu20.04 工具是laravel-ubuntu-init
 
wget -qO- https://raw.githubusercontent.com/summerblue/laravel-ubuntu-init/master/download.20.04.sh - | bash
 
根据文档执行命令即可,如果中途失败可以重新执行,直到完成!
 

MYSQL 8.0 FALSE

 

1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Fix issue

sudo cat /etc/mysql/debian.cnf
找到[client]用其下面的user 与密码登录 可以创建用户或者设置密码
// localhost 本地登录 注意密码请尽量复杂 否则高版本mysql5.7 以上 报错 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password&*H'; //只是创建用户与密码 % 不限制登录IP create user 'peter'@'%' identified by 'password'; //赋予所有权限 可能还要注释 grant all privileges on *.* to 'peter'@'%'; // mysql_native_password 赋予密码远程登录 否则mysql5029 ALTER USER 'peter'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
如果依旧不能远程登录 还需要配置下:
 
sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
bind-adderss = 127.0.0.1 改为如下: #bind-adderss = 127.0.0.1
 
至此mysql 本地远程都能登录了,如还有疑问,可留言

🤗总结归纳

LNMP 有很多一键安装的脚本 如果只是自己测试玩 可以随意,生产环境慎重
 
更多细节可以使用 可查看我以往的博客 https://learnku.com/articles/66787
5步搭建 wordpress woocommerce商城前端开发工具系列介绍

Peter City
Peter City
一个普通的干饭人🍚 Dont think Feel
公告
type
status
date
slug
summary
tags
category
icon
password
🎉welcome peter city blog🎉
一起学习 进步