Lnmp Issues Encountered During Environment Setup
Lnmp enable your web coding
前提
📝Environment used in this article:Ubuntu20.04 Tool:laravel-ubuntu-init
Just follow the commands in the documentation. If it fails midway, you can re-run them until the process completes successfully.
MYSQL 8.0 FALSE
1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Fix issue
sudo cat /etc/mysql/debian.cnf
Locate
[client] and use the user and password there to log in. You can then create users or set passwords.If remote login still fails, modify the configuration:
sudo vim /etc/mysql/mysql.conf.d/mysqld.cnf
bind-adderss = 127.0.0.1 change as: #bind-adderss = 127.0.0.1After this, MySQL should allow both local and remote logins. If you still encounter issues, feel free to leave a comment.
🤗Summary
LNMP has many one-click installation scripts. For testing and personal use, they are convenient, but use caution in production environments.
For more details, you can check my previous blog https://learnku.com/articles/66787
Loading...