MySQL Forums
Forum List  »  Install & Repo

mysqld --initialize (Errcode: 17 - File exists)
Posted by: Philip Häderli
Date: January 02, 2017 02:02PM

i install mysql on Ubuntu 16.04.1 LST

after installation, i change the DB directory.

when i run mysqld --initialize, com output "(Errcode: 17 - File exists)" !

the dirictoru ist mysql owner and grup, permission is 0755 !

when i delet the therictori, is the errorcode 13, permission denedy !

thasnk you for you help !


my my.cnf
port = 3306
socket = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
socket = /var/run/mysqld/mysqld.sock
nice = 0

# * Basic Settings
user = mysql
pid-file = /var/run/mysqld/
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /local_data/db/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
explicit_defaults_for_timestamp = 1

Options: ReplyQuote

Written By
mysqld --initialize (Errcode: 17 - File exists)
January 02, 2017 02:02PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.