mysql folder inaccessible on Ubuntu

廉价感情. 提交于 2019-12-12 01:04:51

问题


I am trying to reset my MySQL root password following the official reference here.

In step #2, I have to do the following

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.

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

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?


回答1:


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



来源:https://stackoverflow.com/questions/21997789/mysql-folder-inaccessible-on-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!