惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

Deepin on 轻风云

deepin下开机自启脚本
deepin15.7上安装mysql(解决不提示设置密码的问题)
2018-10-02 · via Deepin on 轻风云

mysql已经安装完毕,但安装过程没有让你填写密码,链接错误,那么就来看看以下命令吧

1.首先获取root权限

1
anderyly@anderyly-PC:~*su

2.检查mysql是否已运行

1
root@anderyly-PC:~#netstat -tap | grep mysql

3.查询默认的用户名和密码,user是用户名,password后面的是密码

1
root@anderyly-PC:~#vim /etc/mysql/debian.cnf
截图20181105100640.png

4.利用默认账号密码登录

1
mysql -u debian-sys-maint -pBIDVYLyCzwpNgK4H

5.更改密码设置

1
update mysql.user set plugin="mysql_native_password" where user="root";

6.设置root的密码

1
update mysql.user set authentication_string=password('这里是你的密码') where user='root'and Host = 'localhost';

7.退出数据库

8.重启mysql

1
root@anderyly-PC:~#service mysql restart