sudo ssh root@IP
mysql -u root -p -h IP
如果是上面这种写法的话就需要先输入mac的密码,然后再输入服务器的密码
下面这种写法则是直接输入服务器的密码
ssh -p 22 root@IP
登陆mysql
mysql -u root -p -h IP
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/182428.html原文链接:https://javaforall.net
mac远程连接mysql「建议收藏」sudosshroot@IPmysql-uroot-p-hIP
sudo ssh root@IP
mysql -u root -p -h IP
如果是上面这种写法的话就需要先输入mac的密码,然后再输入服务器的密码
下面这种写法则是直接输入服务器的密码
ssh -p 22 root@IP
登陆mysql
mysql -u root -p -h IP
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/182428.html原文链接:https://javaforall.net