MySQL Forums
Forum List  »  Install & Repo

config mysql by my.cnf but someitems don't work
Posted by: TINGTING GU
Date: November 27, 2019 08:15PM

i have docker run mysql by:
docker run --name mysql -d -p 3306:3306 -v /efs/data/mysql/cnf/:/etc/mysql/ -v /efs/data/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=xxxxxx -d mysql:5.7

when i set my.cnf as
[mysql]
default-character-set=utf8mb4

[client]
default-character-set=utf8mb4

[mysqld]
skip-name-resolve
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
server_id = 339393

configuration in mysqld didn't work, configuration in client and mysql worked.

>> mysqld --verbose --help i can see:
server-id 339393

>> mysqladmin variables -uroot -p
server-id 0

i don't know why? can you help me?

Options: ReplyQuote


Subject
Written By
Posted
config mysql by my.cnf but someitems don't work
November 27, 2019 08:15PM


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.