Jump to content

well you can either install a MySQL server on a  machine on your network or what I would do is just run mysql from docker

 

docker run --name mysqlLocal -e MYSQL_ROOT_PASSWORD=mpassword -d mysql:latest

 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/931016-mysql-lan-access/#findComment-11381370
Share on other sites

Link to post
Share on other sites

11 hours ago, Cruorzy said:

Docker might be way to advanced for you.

 

Just install the mysql server on the machine in the same network and you should be good.

It's a single line in a terminal and docker downloads and runs it for you.

 

Plus it's not s bad thing to learn.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
https://linustechtips.com/topic/931016-mysql-lan-access/#findComment-11385921
Share on other sites

Link to post
Share on other sites

On 28-5-2018 at 7:44 AM, vorticalbox said:

It's a single line in a terminal and docker downloads and runs it for you.

 

Plus it's not s bad thing to learn.

Yes and yes but understanding docker requires basic knowledge about linux and it's distro's specially how to use docker and when not to use.

 

He asks for a simple thing which he should already know before even touching docker.

 

The whole thing is that he has to learn about it, remember we are talking about databases, not a subject where you copy/paste a line and see it working.

something that has to be handled with care.

Quote or mention me if not feel ignored 

Link to comment
https://linustechtips.com/topic/931016-mysql-lan-access/#findComment-11389535
Share on other sites

Link to post
Share on other sites

The simpler way might be starting without docker. With databases you need to be very careful with volumes and and directories so messing around with docker containers does not cause loosing data.

 

You mainly need to make sure mysql connects to the correct (or simply all) network interface(s) and the user you create in the database is allowed to connect from anywhere. There are Stackoverflow answers to help with that: https://stackoverflow.com/questions/12358197/mysql-networking-issue - make sure the bind-address is set and the users are allowed to connect (use '%' (any remote host) instead of 'localhost' to allow remote connections when creating users in mysql)

 

If you want to look in the manual: 

 

Link to comment
https://linustechtips.com/topic/931016-mysql-lan-access/#findComment-11400571
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×