华云数据-云主机重设mysql密码(linux系统)
1、linux系统(1)先结束mysql进程#killallmysqld用mysql安全模式运行并跳过权限,用root登录,此时不需要密码#mysqld_safe–skip-grant-tables#mysql–uroot
2、(2)现在开始重设密码#mysql>usemysql;ReadingtableinformationforcompletionoftableandcolumnnamesYoucanturnoffthisfeaturetogetaquickerstartupwith–ADatabasechangedMysql>upsateusersetPassword=newpasswordwhereuser=‘root’;QueryOK,2rowsaffected(0.02sec)Rowsmatched:2Changed:2Warnings:0Mysql>quit
3、(3)重新启动mysql服务#servicemysqldrestart
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:77
阅读量:65
阅读量:22
阅读量:88
阅读量:61