Home  >  Q&A  >  body text

怎么用navicat for mysql连接别的电脑的数据库?

比如我在公司电脑上用Apache建的数据库,能不能在宿舍的电脑上连接?公司这台电脑的mysql是不是必须要开启才能连接?

大家讲道理大家讲道理2743 days ago696

reply all(3)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 16:38:43

    mysql needs to be set to allow remote connections
    mysql>GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;
    But here you'd better not use root, you can create a new one Ordinary users come to visit

    reply
    0
  • 迷茫

    迷茫2017-04-17 16:38:43

    Check whether your company’s computer database provides external network access

    reply
    0
  • 阿神

    阿神2017-04-17 16:38:43

    Under authorization, add local authorization to the LAN IP address you want to connect to the other party

    reply
    0
  • Cancelreply