Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker - mysqld: Table 'mysql.plugin' doesn't exist

Tags:

docker

mysql

When I tried to start Mysql5.6 mirroring in docker, it didn't work... The log says:

mysqld: Table 'mysql.plugin' doesn't exist
2018-12-11 06:41:58 9 [ERROR] Can't open the mysql.plugin table.  
Please run mysql_upgrade to create it.

This is my command:

docker run                      \
  --name MYSQL5.6               \
  -d a46c                       \
  -e MYSQL_ROOT_PASSWORD=123456 \
  -p 3306:3306                  \
  --character-set-server=utf8   \
  --collation-server=utf8_unicode_ci

What should I do? Help,please!Thanks! pirture

like image 609
ZutBoyZ Avatar asked Feb 06 '26 04:02

ZutBoyZ


1 Answers

oh,It's my mistake!

I'm not familiar with docker's command rules! The docker command line is order sensitive. I should put -e MYSQL_ROOT_PASSWORD=123456 -p 3306:3306 in front of -d IMAGE_ID

like image 111
ZutBoyZ Avatar answered Feb 09 '26 09:02

ZutBoyZ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!