mysql設置容許遠程訪問

首先查詢數據庫的用戶表,發現root用戶只能經過localhost訪問鏈接 想要實現容許別人遠程訪問你的數據庫,能夠經過如下方法: 1.直接在原來的數據中修改,將root用戶的訪問host設置爲% (不建議這樣作) 2.使用命令web grant all privileges on . to root@’%’ identified by 「yourpassword」; flush privileg
相關文章
相關標籤/搜索