ubuntu服务器16.04中mysql的默认密码

编程入门 行业动态 更新时间:2024-10-27 10:21:51
本文介绍了ubuntu服务器16.04中mysql的默认密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经安装了ubuntu 16.04服务器.默认情况下,Mysql服务器已安装在其中.当我尝试使用mysql -u root -p访问mysql时,由于没有密码,我无法登录mysql.有默认密码吗?

I have installed ubuntu 16.04 server. Mysql server was installed by default in it. When I am trying to access the mysql with mysql -u root -p, I am unable to log in to mysql because I dont have the password. Is there any default password?

我也尝试过使用--skip-grant-tables,即使这样也不起作用.甚至尝试仅使用mysql -u root登录也是失败的.

I have also tried with --skip-grant-tables, even this does not work. Even trying to log in with just mysql -u root is a failure.

推荐答案

这是您要寻找的: sudo mysql --defaults-file=/etc/mysql/debianf 基于Debian的Linux上的MySql通常使用带有凭据的配置文件.

This is what you are looking for: sudo mysql --defaults-file=/etc/mysql/debianf MySql on Debian-base Linux usually use a configuration file with the credentials.

更多推荐

ubuntu服务器16.04中mysql的默认密码

本文发布于:2023-10-28 13:14:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1536733.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:密码   服务器   ubuntu   mysql

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!