视图-->其他窗口-->服务器资源管理器-->数据连接-->右键添加连接
servername:localhost
username:root
password:123456
database name:xpy
测试连接成功