Following the steps at the production-setup everything works ok until the last step performed at the DB container (<mypassword> is redacted):
mysql -u "root" "-p<mypassword>" < "/home/init.sql"
I get this error:
ERROR 1062 (23000) at line 1: Duplicate entry '10.%.%.%-_eb20b8fab81601ab' for key 'PRIMARY'
The content of the file /home/init.sql is:
UPDATE mysql.user SET host = '10.%.%.%' WHERE host LIKE '10.%.%.%' AND user != 'root';
UPDATE mysql.db SET host = '10.%.%.%' WHERE host LIKE '10.%.%.%' AND user != 'root';
FLUSH PRIVILEGES;
Following the steps at the production-setup everything works ok until the last step performed at the DB container (
<mypassword>
is redacted):mysql -u "root" "-p<mypassword>" < "/home/init.sql"
I get this error:
ERROR 1062 (23000) at line 1: Duplicate entry '10.%.%.%-_eb20b8fab81601ab' for key 'PRIMARY'
The content of the file
/home/init.sql
is:Could you please tell me what's wrong?
Thank you!