开发者社区 问答 正文

msyq可以通过域名连接吗

msyq可以通过域名连接吗

展开
收起
道月芬1 2021-10-15 16:38:10 384 分享 版权
1 条回答
写回答
取消 提交回答
  • 可以通过域名连接,只要域名能解析成对应的IP就行

    root@e152fda7761b:/# mysql -u root -p -h e152fda7761b
    Enter password:
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 79220
    Server version: 5.7.33-log MySQL Community Server (GPL)
    
    Copyright (c) 2000, 2021, Oracle and/or its affiliates.
    
    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    mysql>
    
    
    2021-10-15 16:39:16
    赞同 展开评论
问答分类:
问答标签:
问答地址: