I have started the standard mysql docker container and now want to create a user and grant privileges to him.
But there happens nothing and i get this warning:
MySQL is started in --skip-name-resolve mode; you must restart it without this switch for this grant to work
I am not so familiar with mysql - so what should i do here?
A much better solution would be to start this container with an additional sql script.
What should i do to start the container with an script like this:
CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'myuser';
GRANT ALL PRIVILEGES ON * . * TO 'myuser'@'localhost';
That is my actual docker command:
docker run -p 3306:3306 --name mysql-server -e MYSQL_ROOT_PASSWORD=root -d mysql:latest
Could some one help me here?