1.创建数据库 CREATE DATABASE `test` CHARACTER SET 'utf8' COLLATE 'utf8_general_ci'; 创建表 CREATE TABLE tp_wechatlocation ( ID INT NOT NULL AUTO_INCREMENT, OpenID ), Latitude ), Longitude ), CityName ), CreateTime DATETIME, PRIMARY KEY (ID) )ENGINE=INNODB DE…