当前位置:网站首页>Problems encountered in using MySQL
Problems encountered in using MySQL
2022-06-25 16:45:00 【Niu you Dao Xue Mian】
1、 Problem description
this morning mysql Still using , In the afternoon , Just say my password is wrong and I can't log on .
But I have never touched any other configuration ?
2、 terms of settlement
Here I reload mysql. If you don't have important data, you can do this . If there's important data , Try backing up your data first .
- First delete all mysql The dependent libraries
sudo pacman -R mysql libmysqlclient mysql-clients
- Then delete mysql Configuration file for ( Go to the super user interface first )
cd /var/lib/mysql
rm -rf *
- install mysql
sudo pacman -S mysql
- initialization mysql( This step obtains mysql Initial password )
sudo mysqld --initialize --user=mysql --basedir=/usr --datadir=/var/lib/mysql

- restart mysql( Be careful , Be sure to restart mysql)
sudo systemctl restart mysqld
- land mysql( Use your initial password )
mysql -u root -p

- Change Password
Get into mysql in the future , Reset password .
I really appreciate it , Because there is no restart step , I've done it dozens of times ...
边栏推荐
- First knowledge of database
- Preliminary understanding of JVM
- Summary of 2022 spring moves of ordinary people (Alibaba and Tencent offer)
- The first day of reading mysql45
- Alvaria announces Jeff cotten, a veteran of the customer experience industry, as its new CEO
- Paper notes: lbcf: a large scale budget constrained causal forest algorithm
- XML usage and parsing of data storage and transmission files
- Coredata data persistence
- Day_ eleven
- 微信公众号服务器配置
猜你喜欢

卡尔曼时间序列预测

pychrm的这些配置,你都知道吗?

Reverse series to obtain any wechat applet code

What can one line of code do?

Bombard the headquarters. Don't let a UI framework destroy you

Optimization of lazyagg query rewriting in parsing data warehouse

论文笔记:LBCF: A Large-Scale Budget-Constrained Causal Forest Algorithm

Dino: Detr with improved detecting anchor boxes for end to end object detection

解析数仓lazyagg查询重写优化

Day_ fourteen
随机推荐
1-8Vmware中的文件共享
从TiDB上线阿里云的背后,如何看待云数据库的变革趋势
Helsinki traffic safety improvement project deploys velodyne lidar Intelligent Infrastructure Solution
This latest research has revealed two secrets of cloudy development
Day_ fourteen
居家办公让我绩效拿了C | 社区征文
Day_ ten
Unity技术手册 - 干扰/噪音/杂波(Noise)子模块
深入浅出对话系统——自己实现Transformer
使用hbuilder X创建uniapp项目
Flutter textfield setting can input multiple lines
Alvaria announces Jeff cotten, a veteran of the customer experience industry, as its new CEO
Perfect shuffle problem
卡尔曼时间序列预测
2022-06-17 网工进阶(九)IS-IS-原理、NSAP、NET、区域划分、网络类型、开销值
3. conditional probability and independence
Understanding of reflection part
pychrm的这些配置,你都知道吗?
Unity技术手册 - 生命周期旋转RotationOverLifetime-速度旋转RotationBySpeed-外力ExternalForces
Catheon gaming appointed mark Aubrey, former Asia Pacific head of Activision Blizzard, as CEO