在Ubuntu上无法访问mysql文件夹 [英] mysql folder inaccessible on Ubuntu

查看:362
本文介绍了在Ubuntu上无法访问mysql文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试按照官方的信息来重置MySQL的root密码.此处参考.

在步骤2中,我必须执行以下操作

In step #2, I have to do the following

找到包含服务器进程ID的.pid文件.最正确 该文件的位置和名称取决于您的分发,主机名, 和配置.常见位置是/var/lib/mysql/, /var/run/mysqld/和/usr/local/mysql/data/.通常,文件名 具有.pid扩展名,并以mysqld或 系统的主机名.

Locate the .pid file that contains the server's process ID. The exact location and name of this file depend on your distribution, host name, and configuration. Common locations are /var/lib/mysql/, /var/run/mysqld/, and /usr/local/mysql/data/. Generally, the file name has an extension of .pid and begins with either mysqld or your system's host name.

因此,我转到/var/lib/并找到mysql文件夹.我双击它,出现以下弹出窗口:

So I go to /var/lib/ and find the mysql folder. I double-clicked it, I got the following pop-up window:

无法显示文件夹内容.

您没有查看"mysql"的内容所必需的权限.

The folder contents could not be displayed.

You do not have the permissions necessary to view the contents of "mysql".

我非常确定我确实是系统管理员.为什么会这样以及如何解决?

I am pretty sure that I am indeed the system admin. Why is it like so and how to fix it?

推荐答案

首先以root用户身份使用终端/控制台. 不是系统专家-但这应该可以帮助您: 进入ubuntu终端/控制台 切换到root用户(sudo bash) 然后按照以下步骤操作: https://help.ubuntu.com/community/MysqlPasswordReset

Start with working with the terminal/console as a root user. Not a system expert - but it should get you somewhere: Get into the ubuntu terminal/console switch to the root user (sudo bash) Then follow this one : https://help.ubuntu.com/community/MysqlPasswordReset

这篇关于在Ubuntu上无法访问mysql文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆