c#操作mysql积累时间:2023-03-09 20:46:55 1,连接字符串 Server=localhost;port=;User ID=root;password=admin;database=;charset=utf8;Allow User Variables=True 2,mysql str_to_date字符串转换为日期 select str_to_date('2008-4-2 15:3:28','%Y-%m-%d %H:%i:%s');