[英]fresh installed mysql and mysql-server but failed to start server
I am new to Linux and tried to install mysql in my local box 我是Linux新手,并尝试在本地框中安装mysql
I googled a lot and follow the instruction but none of them works 我在Google上搜索了很多,并按照说明进行操作,但都无济于事
some people recommand this " but it did not work for me and system give me warning about this is not a official version. 有人建议使用此命令,但是它对我不起作用,系统警告我这不是正式版本。
Basically what I did was: 基本上我所做的是:
I am using Fedora 16 (3.1.0-7.fc16.i686) 我正在使用Fedora 16(3.1.0-7.fc16.i686)
Thank you in advance 先感谢您
Could you try running 你可以尝试跑步吗
yum groupinstall "MySQL Database" yum groupinstall“ MySQL数据库”
then run 然后跑
service mysqld start 服务mysqld启动
and see the outcome. 并查看结果。 Assuming you are running as root or with root permissions.
假设您以root用户或具有root用户权限运行。
Got the EXACT same problem. 得到了完全相同的问题。 It seems there is an issue regarding the permissions of the /var/lib/mysql directory.
似乎有关/ var / lib / mysql目录的权限存在问题。
This nailed it for me: 这给我钉了一下:
chown -R mysql.mysql /var/lib/mysql
Source: http://www.vivaolinux.com.br/dica/Como-solucionar-ERROR-2002-Cant-connect-to-local-MySQL-server 来源: http : //www.vivaolinux.com.br/dica/Como-solucionar-ERROR-2002-Cant-connect-to-local-MySQL-server
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.