MySQL Forums
Forum List  »  Install & Repo

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

hi,
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 !

Philip



my my.cnf
[client]
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.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0

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

Options: ReplyQuote


Subject
Written By
Posted
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.