当前位置:网站首页>Viewing MySQL password on Linux_ MySQL forgets password "suggestions collection" under Linux
Viewing MySQL password on Linux_ MySQL forgets password "suggestions collection" under Linux
2022-06-25 02:01:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
1、 the front
Install on the server today mysql after , Login found password error , But I didn't set the password , Finally, baidu learned that ,mysql stay 5.7 An initial password will be automatically created after version .
An error is as follows :
[[email protected] ~]#mysql -u root -p
Enter password:
ERROR1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
2、 Check MySQL Whether the service starts
First check MySQL Whether the service starts , If you start , Shut down first MySQL service .
// see mysql Service status
[[email protected] ~]#ps -ef | grep -i mysql
root 22972 1 0 14:18 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe –datadir=/var/lib/mysql –socket=/var/lib/mysql/mysql.sock –pid-file=/var/run/mysqld/mysqld.pid –basedir=/usr –user=mysql
mysql23166 22972 0 14:18 pts/0 00:00:00 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –plugin-dir=/usr/lib/mysql/plugin –user=mysql –log-error=/var/log/mysqld.log –pid-file=/var/run/mysqld/mysqld.pid –socket=/var/lib/mysql/mysql
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/151776.html Link to the original text :https://javaforall.cn
边栏推荐
- 罗德与施瓦茨与中关村泛联院合作开展6G技术研究与早期验证
- EasyCVR国标协议接入的通道,在线通道部分播放异常是什么原因?
- Redis basic commands and types
- Elastase instructions in Chinese and English
- Half of the year has passed. How many flags have been achieved at the end of the year?
- Is GF futures safe? What do I need to open an account?
- mpls 笔记 part 1
- sql 聚合函数对 null 的处理[通俗易懂]
- PS5连接OPPO K9电视不支持2160P/4K
- RedisTemplate操作Redis,这一篇文章就够了(一)[通俗易懂]
猜你喜欢

Baidu voice synthesizes voice files and displays them on the website

测试/开发程序员,30而立,你是否觉得迷茫?又当何去何从......

Google browser console F12 how to set the Chinese / English switching method, we must see the last!!!

Fan benefits, JVM manual (including PDF)

How to prepare for the last day of tomorrow's exam? Complete compilation of the introduction to the second building test site

Dataease template market officially released

谷歌浏览器控制台 f12怎么设置成中文/英文 切换方法,一定要看到最后!!!

PS5连接OPPO K9电视不支持2160P/4K
Cusdis - lightweight, privacy first open source comment system | chain of the city

【LeetCode】11、盛最多水的容器
随机推荐
Cusdis - 轻量级、隐私优先的开源评论系统 | 倾城之链
Intégration de la plate - forme de test continu open source de metersphere avec Alibaba Cloud Effect devops
Specific list of regular and safe domestic stock trading account opening
Chrysanthemum chain (winter vacation daily question 39)
Taishan Office Technology Lecture: a simple study of Chinese punctuation in vertical arrangement
Multimodal emotion recognition_ Research on emotion recognition based on multimodal fusion
Abnova CSV magnetic beads description in Chinese and English
uni-app集成极光推送插件后真机调试提示“当前运行的基座不包含原生插件[JG-JPush]...”问题的解决办法
leetcode:2104. 子数组范围和
Search two-dimensional matrix [clever use of bisection + record solution different from inserting bisection]
FTP协议讲解
An Chaoyun: "one cloud with multiple cores" supports the implementation of the national information innovation government cloud
How to prepare for the last day of tomorrow's exam? Complete compilation of the introduction to the second building test site
Is CICC securities reliable? Is it safe to open a securities account?
获取图片外链的方法–网易相册[通俗易懂]
Texture enhancement
Half of the year has passed. How many flags have been achieved at the end of the year?
DataEase模板市场正式发布
Fake wireless speakers in stores? Sony responded: the product has reserved a wired connection interface, which can be used in complex scenarios
中文地址与英文地址