原因有可能是oracle的密码过期机制导致的:一.由于Oracle中默认在default概要文件中设置了“PASSWORD_LIFE_TIME=180天”所导致.解决办法:1.查看用户用的哪种profile策略,一般是default:select username,profile from dba_users; 2.查看指定概要文件(如default)的密码有效期设置:select * from dba_profiles s where s.profile='DEFAULT' and resou
使用ALTER USER 语句锁定 mysql>ALTER USER 'demo'@'localhost' ACCOUNT LOCK; Query OK, rows affected (0.00 sec) 使用被锁账号登录会报ERROR 3118错误: $ mysql -udemo -p Enter password: ERROR (HY000): Access denied for user 'demo'@'localhost'. Account is locked. 解锁账号 mysql>
转自http://blog.csdn.net/w690333243/article/details/76576952 1.新建用户 创建test用户,密码是1234. MySQL -u root -p CREATE USER 'test'@'localhost' IDENTIFIED BY '1234'; #本地登录 CREATE USER 'test'@'%' IDENTIFIED BY '1234'; #远程登录 quit mysql -u test -p #测试是否创建成功 2.为用户