简体   繁体   中英

connect to database in remote machine through MySQL Workbench

I want to connect to another PC's database through MySQL Workbench6.0

I have added all the related firewall exceptions for all ports in both PCs.

In Workbench i have done settings as

在此处输入图片说明

Is there anything wrong with it?

Is there any more settings i will have to do?

Please help me.

Make sure that you have set

bind-address = 192.168.1.1

set in yourr my.cnf.

Also make sure you granted the correct rights

so something like for just your client machine

grant all privilege on *.* to `username`@`your-pc-id` identified by 'password'

or

grant all on *.* to 'username'@'%' identified by 'password';

for all hosts.

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