IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

MySQL忘记root用户密码修改方法

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

一般来说在MySQL修改用户密码有好几种方法:

1、修改自己的密码可用:

set password=password(‘123456’);

2、修改其它用户的密码可用:

set password for ‘username’@’host’=password(‘123456’);

3、通过修改mysql库中的user表中的password字段,可用:

update mysql.user set password=password(‘123456′) where User=’username’ and Host=’192.168.1.172′;

4、用mysqladmin命令:

mysqladmin -uusername -p1234 password “123456” (其中1234是旧密码,123456是新密码)

以上几种命令方式都是在用户登陆时和具有相应的权限才能修改,如root用户,那如果root用户的密码也忘记了怎么办,可用如下方式修改:

1、关闭数据库:service mysql stop;

2、使用mysqld_safe –skip-grant-tables &启动数据库

3、使用空密码进入数据库:mysql命令后直接回车。

4、使用update语句修改root密码。

5、关闭数据库并重新以正常方式启动数据service mysql stop;service mysql start;


Warning: A non-numeric value encountered in /data/wangzhan/tech.souyunku.com.wp/wp-content/themes/dux/functions-theme.php on line 1154
赞(68) 打赏



未经允许不得转载:搜云库技术团队 » MySQL忘记root用户密码修改方法

IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码
IDEA2023.1.3破解,IDEA破解,IDEA 2023.1破解,最新IDEA激活码

评论 抢沙发

大前端WP主题 更专业 更方便

联系我们联系我们

觉得文章有用就打赏一下文章作者

微信扫一扫打赏

微信扫一扫打赏


Fatal error: Uncaught Exception: Cache directory not writable. Comet Cache needs this directory please: `/data/wangzhan/tech.souyunku.com.wp/wp-content/cache/comet-cache/cache/https/tech-souyunku-com/index.q`. Set permissions to `755` or higher; `777` might be needed in some cases. in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php:367 Stack trace: #0 [internal function]: WebSharks\CometCache\Classes\AdvancedCache->outputBufferCallbackHandler() #1 /data/wangzhan/tech.souyunku.com.wp/wp-includes/functions.php(5109): ob_end_flush() #2 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(303): wp_ob_end_flush_all() #3 /data/wangzhan/tech.souyunku.com.wp/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #4 /data/wangzhan/tech.souyunku.com.wp/wp-includes/plugin.php(470): WP_Hook->do_action() #5 /data/wangzhan/tech.souyunku.com.wp/wp-includes/load.php(1097): do_action() #6 [internal function]: shutdown_action_hook() #7 {main} thrown in /data/wangzhan/tech.souyunku.com.wp/wp-content/plugins/comet-cache/src/includes/traits/Ac/ObUtils.php on line 367