Using Docker to run Mariadb but the database is empty
<p>So, I can access running mysql inside the virtual machine using:
mysql -h (mariadb's IP) -u (user) -p (password) database name
Now when I try to create the following command to run mariadb inside a docker container: [ref] (How to access mariadb on docker remotely?). Then when I display the table, it displays <strong>Empty Set (0.000 seconds)</strong>. Not sure why I can't see the data through docker. I also tried using docker ip as container, same thing. Does anyone know a solution to this problem? Thank you in advance. </p>