新装的mysql出现无法登陆的问题 er 1405 参考下面的解决
发布日期:2021-09-29 20:08:40 浏览次数:4 分类:技术文章

本文共 808 字,大约阅读时间需要 2 分钟。

Installing MySQL 5.0
First we install MySQL 5.0 like this:
sudo apt-get install mysql-server mysql-client
Create a password for the MySQL user root (replace yourrootsqlpassword with the password you want to use):
sudo mysqladmin -u root password yourrootsqlpassword
Then check with
netstat -tap | grep mysql
on which addresses MySQL is listening. If the output looks like this:
tcp 0 0 localhost.localdo:mysql *:* LISTEN 2713/mysqld
which means MySQL is listening on localhost.localdomain only, then you’re safe with the password you set before. But if the output looks like this:
tcp 0 0 *:mysql *:* LISTEN 2713/mysqld
you should set a MySQL password for your hostname, too, because otherwise anybody can access your database and modify data:
sudo mysqladmin -h serverip -u root password yourrootsqlpassword

转载地址:https://blog.csdn.net/horace_lee/article/details/83815820 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:jQuery插件—【图片文字循环滚动】
下一篇:mysql忘记root密码的解决和重启

发表评论

最新留言

逛到本站,mark一下
[***.202.152.39]2024年04月26日 17时17分15秒