Forum Stats

  • 3,780,464 Users
  • 2,254,398 Discussions
  • 7,879,339 Comments

Discussions

Why Mysqld service doesn't start even when the data directory is empty

user13515335
user13515335 Member Posts: 1
edited Dec 1, 2016 3:52PM in MySQL Community Space

Getting error when I try to start mysqld

service mysqld start

Initializing MySQL database:  mysqld: Can't create directory '/mysql/data/' (Errcode: 17 - File exists)

When I check the directory

sudo ls -l /mysql/data

total 0

ls -la /mysql/data

total 8

drwxr-x--x. 2 mysql    mysql    4096 Nov 28 00:12 .

drwxr-xr-x. 6 mysqlsvc mysqlgrp 4096 Nov 27 13:25 ..

Answers