最近一段运行良好的代码突然无法运行,报错:MySQL said:Documentation 1690-BIGINT UNSIGNED value is out of range in 经过查询,发现这个错误的原因是两个时间字段进行减法运算时,如果有一个时间为0000-00-00时造成的,根本原因是因为...
1.mysql>use mysql;mysql>update user set host='%' where user='root';mysql>select host,user from user;2.mysql>GRANT ALL PRIVILEGES ON*.*TO 'root'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;mysql>flush privileges;说明:...