风's profile风来西林PhotosBlogLists Tools Help

Blog


    November 05

    ubuntu系统允许用户外部访问MYSQL修改

    通过管理帐号登陆MYSQL

    添加或授权一个外部访问MYSQL的帐号:

    grant all privileges on *.*(任何数据库) to 用户名@"%(此处为任何主机)" identified by "(你的密码)" with grant option;

    试用命令查看3306端口

    netstat  -an  |grep  3306

    tcp                0            0  127.0.0.1:3306                    0.0.0.0:*                              LISTEN

    从外部服务器扫描该服务器,3306也没有打开,我们修改my.cnf文件开启外部访问的权限:

    bind-address           = 127.0.0.1  #将该处的配制删除或注释掉,因为该参数是限制访问只能是本机

    Comments

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    Trackbacks

    The trackback URL for this entry is:
    http://jadexo.spaces.live.com/blog/cns!E5A97338AC5AFE1A!301.trak
    Weblogs that reference this entry
    • None