linux下mysql修改root密码
方法一:用set password命令
首先,登陆mysql
mysql -u root -p
然后执行set password命令
set password for root@localhost = password('654321');
上面例子,将root密码更改为654321
注意:装完mysql第一次更改密码是把所有的更改为654321,
但是下一次再这样执行就只是
root@localhost的密码更改为654321,root@%等还是原来的没变
方法二:使用mysqladmin
格式为:mysqladmin -u用户名 -p旧密码 password 新密码
mysqladmin -uroot -p123456 password "654321"
上面例子,将root密码由123456更改为654321
方法三:更改mysql的user表
首先,登陆mysql
mysql -uroot -p
然后操作mysql库的user表,进行update
mysql> use mysql;
mysql> update user set password=password('654321') where user='root' and host='localhost';
mysql> flush privileges;
方法四:忘记密码的情况下
首先停止mysql服务
service mysqld stop
以跳过授权的方式启动mysql
mysqld_safe --skip-grant-tables &
以root用户登录mysql
mysql -u root
操作mysql库的user表,进行update
mysql> use mysql;
mysql> update user set password=password('654321') where user='root' and host='localhost';
mysql> flush privileges;
mysql> quit
重启mysql服务
service mysqld restart
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAdwAAACnCAIAAAA0U3oUAAAgAElEQVR4nO2daVQU17r395ez3uR4j9NJsrwmd8UhMTECMYK5apKTo3HK1RiFo4gRQUAU44AiClGBoCICSjcogRjizKw4HxUcUESQthEQEBAMgqGVwU6MHiUxvB96qmFX1e6Brmp4fuu/WDU8+9lVu6v+vXt39QZ12gjDx85mSG1pOjs7yf8CAAB0BcgJAAAAkAxI7HcFAAAAwABKPHkTBAKBQBIRSjpZCgKBQCCJCCWdKgWBQCCQRIS+P10GAoFAIIkI7f53OQgEAoEkIpR85hYIBAKBJCL049lbIBAIBJKI0J5zlSAQCASSiNC+nCouRe059W3cwd0nFDwxIBAIBLKgOE35zUFD7O3tJ02a5Ofntz02TvQDBYFAoJ4gtD/3Nltbk0/a2dmNHTvWz88vKioqKytrf04FNhIEAoFAFhQ6eKGaLd81m+3t7UePHt3Q0NDc3Hznzp2sKzXYSI22f/0B4sQ1kBl/bv6ID+YfwKXa6kqPPzd/BJqwlba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GDKACAxbMyU5XI59nskuVzOU+rAoUObIyLid+06dfbclaLrpRWV1TW1ihs3UlNTD6Wmbty40TIHVysbZztdZC1gygAgMWzYlIdPWE1oyhmZmQlJ32/dtm3Dxo0Ba9Zs2rQpOzv7wsWLFy9f2ZWQgO8p18rGjfP1HYdowxG1Mt2GcbJaraPJfDX7dSMXmp2GSN/TnfRISmbf09o4TX5DIWZ+6pCIoSLf06xDwsEKoWSQ4arAnCbZAXMDpgwAhPx/sLVIvhSP+Z8AAAAASUVORK5CYII=" alt="" />
主意mysql在不同的主机上面设置的不同密码是不一样的
linux下mysql修改root密码的更多相关文章
- linux下mysql忘记root密码怎么办
Linux下MySQL忘记root密码怎么办? Linux下MySQL忘记root密码怎么办? 1. 修改MySQL配置文件 默认MySQL的配置文件为/etc/my.cnf,在[mysqld]下面添 ...
- Linux下mysql忘记root密码
一台机器上的MYSQL服务器很久没用了,忘了root密码无法连接.一时情急,网上搜寻办法,解决,记录在此备用. 修改MySQL的登录设置: //不同的版本的Linux配置文件的位置也不一样,以Lin ...
- linux下mysql的root密码忘记解决方法
1.首先确认服务器出于安全的状态,也就是没有人能够任意地连接MySQL数据库. 因为在重新设置MySQL的root密码的期间,MySQL数据库完全出于没有密码保护的 状态下,其他的用户也可以任意地登录 ...
- linux下mysql的root密码忘记解决方
1.首先确认服务器出于安全的状态,也就是没有人能够任意地连接MySQL数据库. 因为在重新设置MySQL的root密码的期间,MySQL数据库完全出于没有密码保护的 状态下,其他的用户也可以任意地登录 ...
- linux下mysql忘记root密码的解决方案
1.首先确认服务器出于安全的状态,也就是没有人能够任意地连接MySQL数据库. 因为在重新设置MySQL的root密码的期间,MySQL数据库完全出于没有密码保护的 状态下,其他的用户也可以任意地登录 ...
- linux下mysql的root密码忘记----解决方案
1.首先确认服务器出于安全的状态,也就是没有人能够任意地连接MySQL数据库. 因为在重新设置MySQL的root密码的期间,MySQL数据库完全出于没有密码保护的 状态下 ...
- Linux下如何修改root密码以及找回root密码
Linux下修改root密码方法 以root身份登陆,执行: passwd 用户名 然后根据提示,输入新密码,再次输入新密码,系统会提示成功修改密码. 具体示例如下: [root@www ~]# pa ...
- Linux 下mysql忘记root密码解决方法
忘记root密码怎么办:1.关闭数据库2.使用-->mysqld_safe --skip-grant-tables &--<启动数据库3.使用空密码进入数据库(mysql命令后直接 ...
- Linux下mysql的root密码修改方法(ERROR 1054)
#1.停止mysql数据库 /etc/init.d/mysqld stop #2.执行如下命令 mysqld_safe --user=mysql --skip-grant-tables --skip- ...
随机推荐
- ORACLE JOB创建
Connected Connected as focususer SQL> SQL> --JOB 需要在命令行执行: SQL> --抽数job SQL> CREATE OR R ...
- 设计模式(四)—观察者模式
一.概述 观察者模式类似于邮件订阅和RSS订阅,当我们浏览一些博客或wiki时,经常会看到RSS图标,就这的意思是,当你订阅了该文章,如果后续有更新,会及时通知你.其实,简单来讲就一句话:当 ...
- 数字图像处理(MATLAB版)学习笔记(1)——第1章 绪言
0.下定决心 当当入手数字图像处理一本,从此开此正式跨入数字图像处理大门.以前虽然多多少少接触过这些东西,也做过一些相关的事情,但感觉都不够系统,也不够专业,从今天开始,一步一步地学习下去,相信会有成 ...
- 08 Noise and Error
噪声:误标.对同一数据点的标注不一致.数据点信息不准确... 噪声是针对整个输入空间的. 存在噪声的情况下,VC bound依旧有用: 存在噪声,就是f--->p(y|x),f是p的特殊情况:如 ...
- var的一些理解
var 是 variable(变量,可变物)的简写.在多种编程语言中,var 被用作定义变量的关键字,在一些操作系统中也能见到它的身影.类似object,但是效率比object高一点. var是一个局 ...
- stick footer布局
需求: 将footer固定到底部.文章内容不足满屏时 footer在底部,超过满屏时footer在内容末尾. 方法一: <div id="wrap"> <div ...
- Java设计模式:工厂模式
问题提出 Java的工厂模式与现实生活中的工厂的模型是很相似的.工厂是用来做什么?当然是用来生成产品.因此在Java的工厂模式的关键点就是如何描述好产品和工厂这2个角色之间的关系. 下面来仔细描述一下 ...
- bigdecimal更精确的浮点处理方式
Java在java.math包中提供的API类BigDecimal,用来对超过16位有效位的数进行精确的运算.双精度浮点型变量double可以处理16位内有效数,超过16位,double可能会出现内存 ...
- MVC实现SSO
近来工作无事,想做个SSO, 之前做过一个项目用到SSO,自己也没有看明白是个什么东西.现在正好有时间,所以想研究下. 先是从网上看到了SSO的思路: 三个站点:SiteA,SiteB,SiteMai ...
- python3和python2的区别部分
字典没有iteritems(),只有items() py2items()返回的是列表,iteritems()返回的是迭代器 py3items()返回的是迭代器