当前位置:网站首页>MYSQL 几个常用命令使用
MYSQL 几个常用命令使用
2022-06-22 19:10:00 【withkai44】
一. mysql 修改密码
1.mysql -u root -p root 输入原密码登录命令行
2.use mysql;
3.update user set password=password ('root123') where 'user' = 'root';
5.7 版本 update user set authentication_string=password ('root123') where 'user' = 'root';
4.flush privileges; 提交应用.
5.You must reset your password using ALTER USER statement before
executing this statement 必须修改临时密码,命令:alter user user () identified by '@Juaner521';
二. mysql 修改远程连接
1.mysql -u root -p root
2.use mysql;
3.select host,user,password from user; 查看是否允许远程连接
4.grant all privileges on *.* to [email protected]'%' identified by "password"; ,
如果 报错,可换个方法
#创建一个新的账户
CREATE USER 'username'@'%' IDENTIFIED WITH mysql_native_password BY 'xxxxxx';
#给这个账户所有权限
> GRANT ALL PRIVILEGES ON *.* TO'username'@'%';
1.flush privileges;
三. win 添加 mysql 服务:
- 进入 mysql\bin 文件夹:mtsqld --install;
- 如果提示:install/remove of the service denide, 以管理员身份运行 cmd。
四。报错 Ignoring the redo log due to missing… :
删除 mysql/data/ 目录下 ib_logfile0``ib_logfile1 重启就好。
边栏推荐
- Gossip about redis source code 121
- 【毕业季】走一步看一步?一个自动化er对大学四年的思考
- Using qtest for data set test performance test GUI test
- 迅睿CMS 自定义数据接口-php执行文件代码
- 从感知机到Transformer,一文概述深度学习简史
- [in depth understanding of tcapulusdb technology] getting started with MySQL driver
- Introduction to JWT
- Random talk about redis source code onehundredandtwenty
- [deeply understand tcapulusdb technology] tcapulusdb table management - rebuild table
- 年中大促 | 集成无忧,超值套餐 6 折起
猜你喜欢
![[in depth understanding of tcaplus DB technology] getting started tcaplus SQL driver](/img/2b/3ab5e247ac103728b4d3579c3c5468.png)
[in depth understanding of tcaplus DB technology] getting started tcaplus SQL driver
![[in depth understanding of tcapulusdb technology] getting started with MySQL driver](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[in depth understanding of tcapulusdb technology] getting started with MySQL driver

Emotion analysis with RNN & CNN pytorch

【深入理解TcaplusDB知識庫】部署TcaplusDB Local版常見問題

Using qtest for data set test performance test GUI test
Gradle Build Cache引发的Task缓存编译问题

3个月自学自动化测试,薪资从4.5K到15K,鬼知道我经历了什么?

怎样实现网页端im即时通讯中的@人功能

One picture decoding opencloudos community open day

【Proteus仿真】8x8Led点阵数字循环显示
随机推荐
R语言基于h2o包构建二分类模型:使用h2o.glm构建正则化的逻辑回归模型、使用h2o.auc计算模型的AUC值
[in depth understanding of tcapulusdb technology] tcapulusdb operation and maintenance
基于Sentinel的高可用限流系统的Grafana报表展示
Gossip about redis source code 121
[deeply understand tcapulusdb technology] tcapulusdb process
He was in '98. I can't play with him
智能计算之神经网络(BP)介绍
Summary of 2019: 31 is just another start
[deeply understand tcapulusdb technology] how to start tcapulusdb process
Can financial products be redeemed on weekends?
Lora technology -- Lora signal changes from data to Lora spread spectrum signal, and then from RF signal to data through demodulation
Unityeditor editor script execution menu
一个支持IPFS的电子邮件——SKIFF
[in depth understanding of tcaplus DB technology] Introduction to tcaplus JDBC development
Random talk on redis source code 119
软件压力测试有哪些方法,如何选择软件压力测试机构?
Three dimensional world helps the laboratory to consolidate the complete quality system management
[in depth understanding of tcapulusdb technology] tcapulusdb adds a new business cluster cluster
【已解决】--go_out: protoc-gen-go: Plugin failed with status code 1.
[deeply understand tcapulusdb technology] tcapulusdb table management - clean up table