Wat kraades zegt, ik heb inderdaad ook de DB handmatig aangemaakt:
Install a MySQL docker with parameter MYSQL_ROOT_PASSWORD
Create user spotweb with password spotweb, give permissions and create db:
• CREATE USER 'spotweb'@'localhost' IDENTIFIED BY 'spotweb';
• CREATE USER 'spotweb'@'%' IDENTIFIED BY 'spotweb';
• GRANT ALL ON *.* TO 'spotweb'@'localhost';
• GRANT ALL ON *.* TO 'spotweb'@'%';
• CREATE DATABASE spotweb;
Deze commando's voer je uit op de mysql container, dus even inloggen met:
docker exec -it <naam container> bash
Install a MySQL docker with parameter MYSQL_ROOT_PASSWORD
Create user spotweb with password spotweb, give permissions and create db:
• CREATE USER 'spotweb'@'localhost' IDENTIFIED BY 'spotweb';
• CREATE USER 'spotweb'@'%' IDENTIFIED BY 'spotweb';
• GRANT ALL ON *.* TO 'spotweb'@'localhost';
• GRANT ALL ON *.* TO 'spotweb'@'%';
• CREATE DATABASE spotweb;
Deze commando's voer je uit op de mysql container, dus even inloggen met:
docker exec -it <naam container> bash
[ Voor 10% gewijzigd door loyske op 27-10-2016 09:46 ]