Enable remote MySQL connection: ERROR 1045 (28000): Access denied for user

前端 未结 12 2175
北海茫月
北海茫月 2020-11-22 10:06

MySQL 5.1.31 running on Windows XP.

From the local MySQL server (192.168.233.142) I can connect as root as follows:

>mysql --host         


        
12条回答
  •  温柔的废话
    2020-11-22 11:02

    Do you have a firewall ? make sure that port 3306 is open.

    On windows , by default mysql root account is created that is permitted to have access from localhost only unless you have selected the option to enable access from remote machines during installation .

    creating or update the desired user with '%' as hostname .

    example :

    CREATE USER 'krish'@'%' IDENTIFIED BY 'password';
    

提交回复
热议问题