Mysql受權root用戶使用遠程客戶端鏈接:mysql
進入mysql控制檯:sql
shell>mysql -u root -pshell
在控制檯受權:ide
mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;spa
mysql>FLUSH PRIVILEGES; orm
root能夠替換成其餘的mysql用戶get
%能夠替換成你容許遠程登錄的IP地址it