简体   繁体   中英

Mysql connection from other computer to xampp server? Error 1045

There is much information about this error but seems nothing works.

So I try to access to xampp mysql-server using the user root from local network.

mysql -uroot -p -h 192.168.100.48 --port=3306 (connecting from other local computer to xampp server)

But even I put right password (which I use for root) it not work. It works only if I log in using same computer where the server is running. I can use other user which I have specified but not root user. Why?

So how to fix this problem and getting it working?

Does the root user have the correct permissions?

Check the first duplicate link below for full answer - credit to Michael Berkowski:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.%'
    IDENTIFIED BY 'some_characters'  
    WITH GRANT OPTION;
FLUSH PRIVILEGES;

Have you tried search SO first? There are quite a few questions like this.

Possible duplicates:

How to grant remote access permissions to mysql server for user?

Remote MySql connection from other server

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM