Heim  >  Fragen und Antworten  >  Hauptteil

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

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

大家讲道理大家讲道理2743 Tage vor699

Antworte allen(3)Ich werde antworten

  • ringa_lee

    ringa_lee2017-04-17 16:38:43

    mysql 需要设置允许远程连接才可以
    mysql>GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;
    但是在这里你最好不要使用root ,可以新建一个一般的用户来访问

    Antwort
    0
  • 迷茫

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

    看下你们公司电脑数据库提供外网访问没

    Antwort
    0
  • 阿神

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

    授权下 将希望连接对方的局域网IP地址添加本地授权

    Antwort
    0
  • StornierenAntwort