Connecting to MySQL Database over server

前端 未结 4 1824
北恋
北恋 2021-01-02 16:57

I\'m quite a beginner when it comes to working with networks and the like, so apologizes up front. A while back I set up a mySQL database locally on my machine, and have bu

4条回答
  •  抹茶落季
    2021-01-02 17:26

    First of all, what your colleagues need are:

    • The IP Address where MySQL server is running.
    • User and Password to connect remotely
    • Have the port 3306 open on the network
    • A MySQL Client (mysql workbench, mysql query browser, toad, heidi or just the Command Line tool).

    When you create user in MySQL the have to be something like this:

    'root'@'localhost'
    

    That means, the user will work if you connect from localhost with the user root. So you can create user allowed to connect from anywhere:

    'juanperez'@'%'
    

    And finally you have be careful about what privileges are you granting to them. Do not forget to comment a line in the options file of the MySQL that says "bind-address" (this options prevents remote connection).

提交回复
热议问题