Linux系统的数据库
登陆Mysql: mysql -uroot -p123456
mysql>use mysql;
赋值权限,%是代表所有ip都可以连接 或者修改为您自己的ip,就代表只有这个ip才可以连接
mysql> grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;