博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
MySQL5.7更改密码时出现ERROR 1054 (42S22): Unknown column 'password' in 'field list'
阅读量:2395 次
发布时间:2019-05-10

本文共 536 字,大约阅读时间需要 1 分钟。

新安装的MySQL5.7,登录时提示密码错误,安装的时候并没有更改密码,后来通过免密码登录的方式更改密码,输入update mysql.user  set password=password('root') where user='root'时提示ERROR 1054 (42S22): Unknown column 'password' in 'field list',原来是mysql数据库下已经没有password这个字段了,password字段改成了

authentication_string
所以更改语句替换为update mysql.user set authentication_string='root' where user='root' ;即可

 

 

Linux

修改MySQL的登录设置: 

 

1. service mysql stop2.# vi /etc/my.cnf 在[mysqld]的段中加上一句:skip-grant-tables 例如: [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock skip-grant-tables 3.service mysql start

 

 

你可能感兴趣的文章
IDL 全局变量
查看>>
plot without data IDL
查看>>
Distance Transform
查看>>
IDL plot with white background
查看>>
IDL divide by zero
查看>>
IDL sumation over given dimension
查看>>
IDL axis style
查看>>
IDL change the ticks
查看>>
IDL out of the for loop
查看>>
3D Math Primer for Game Programmers
查看>>
IDL 全局变量的变化
查看>>
IDL structures array
查看>>
how to choose the library to include in VC
查看>>
OpenCl 笔记1 Memory Model
查看>>
OpenCl 笔记2 Optimization
查看>>
OpenCL 笔记3 OpenCL和CUDA
查看>>
OpenCL 笔记4 projector application
查看>>
OpenCL 笔记5 reconstruction application
查看>>
Self-define float4 vector
查看>>
C++ 赋值运算符重载
查看>>