简体   繁体   中英

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

I googled a lot and follow the instruction but none of them works

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:

  1. yum install mysql mysql-version succeed without error, version is 5.5.28
  2. systemctl start mysqld.service here it threw out error: Job failed. See system logs and 'systemctl status' for details.

I am using Fedora 16 (3.1.0-7.fc16.i686)

Thank you in advance

Could you try running

yum groupinstall "MySQL Database"

then run

service mysqld start

and see the outcome. Assuming you are running as root or with root permissions.

Got the EXACT same problem. It seems there is an issue regarding the permissions of the /var/lib/mysql directory.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM