Skip to Main Content

MySQL Database

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

user13515335Nov 30 2016 — edited Dec 1 2016

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 ..

Comments
Post Details
Added on Nov 30 2016
2 comments
590 views