数据库|mysql教程
mysql,命令,模式,修改,root,密码,笔记
数据库-mysql教程
jfinal demo案例源码,在线vscode debug,ubuntu sdl,idea如何启动tomcat,安卓SQLITe使用,网页设计笔记本推荐,数据库配置文件在哪里,免费服务器建立网站,xt插件,h ui 前端框架 时间,c爬虫代码,for循环 php,新seo,springboot常见报错,科讯系统函数标签 sql语句,h5响应式网站源码下载,网页音频播放器 js,微盟发送模板消息,zencart后台密码忘记,jquery mobile 滑动切换页面,人员进出管理系统源码,神经网络matlab程序lzw
修改mysql密码过程如下 百度搜索一文章看到使用 格式:mysqladmin -u用户名 -p旧密码 password 新密码 修改于时我下看操作 Enter password: Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 10 Server version: 5.5.2
android 选取颜色 源码,ubuntu c 安装教程,tomcat远程服务器,爬虫代码举例,yun 安装php,怎样的自建网站符合seolzw
汽车配件网站源码,vscode中怎样用css,ubuntu内存修复,tomcat修改发布类型,蚂蚁python爬虫,php学习步骤,北京短视频seo多少钱,图片网站php源码lzw
修改mysql密码过程如下
百度搜索一文章看到使用
格式:mysqladmin -u用户名 -p旧密码 password 新密码
修改于时我下看操作
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 10
Server version: 5.5.27-log MySQL Community Server (GPL)
Copyright (c) 2000, , Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;’ or ‘h’ for help. Type ‘c’ to clear the current input statement.
mysql> mysqladmin -u root password 我要设置的密码
->
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near ‘mysql
admin -u root password 我要设置的密码’ at line 1
mysql> mysqladmin -u root -password 我要设置的密码
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near ‘mysql
admin -u root -password 我要设置的密码’ at line 1
最后小编使用了 mysqladmin -u root -password 我要设置的密码 无法搞定,突然想到直接更新表即可。
mysql> update mysql.user set password=PASSWORD(‘我要设置的密码’) where User =’root
‘;
Query OK, 3 rows affected (0.05 sec)
Rows matched: 3 Changed: 3 Warnings: 0
mysql> flush privileges;
Query OK, 0 rows affected (0.01 sec)
mysql>
好了这样就搞定了哦,虽然过程不复杂也不简单。
,