当前位置:网站首页>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 ...
边栏推荐
- 2021, committed to better development
- MySQL_ JDBC
- How to view the change trend of cloud database from the behind of the launch of tidb to Alibaba cloud
- 软件测试面试如何正确谈薪
- 深入浅出对话系统——自己实现Transformer
- 论文笔记:Generalized Random Forests
- Day_ seventeen
- What plug-ins are available for vscade?
- 【機器學習】基於多元時間序列對高考預測分析案例
- 一个 TDD 示例
猜你喜欢

软件测试面试如何正确谈薪

加密潮流:时尚向元宇宙的进阶

Preliminary understanding of JVM

解析数仓lazyagg查询重写优化

1-8file sharing in VMWare

Read mysql45 - a simple understanding of global locks and table locks

mysql使用过程中遇到的问题

DDD概念复杂难懂,实际落地如何设计代码实现模型?

深入浅出对话系统——自己实现Transformer

Helsinki traffic safety improvement project deploys velodyne lidar Intelligent Infrastructure Solution
随机推荐
Mysql database multi table query
20省市公布元宇宙路线图
This latest research has revealed two secrets of cloudy development
Day21 multithreading
千万级购物车系统缓存架构方案
論文筆記:LBCF: A Large-Scale Budget-Constrained Causal Forest Algorithm
Process control and method
Paper notes: lbcf: a large scale budget constrained causal forest algorithm
Servlet details
Prototype chain analysis
Alvaria announces Jeff cotten, a veteran of the customer experience industry, as its new CEO
Unity技术手册 - 干扰/噪音/杂波(Noise)子模块
How to view the change trend of cloud database from the behind of the launch of tidb to Alibaba cloud
MySQL_ JDBC
3. conditional probability and independence
XML usage and parsing of data storage and transmission files
Learning notes of rxjs takeuntil operator
Kalman Filter 遇到 Deep Learning : 卡尔曼滤波和深度学习有关的论文
从TiDB上线阿里云的背后,如何看待云数据库的变革趋势
加密潮流:时尚向元宇宙的进阶