在数据库中创建私有用户命令:
grant all privileges on database.* to 'user'@'field' identified by 'password'
--》 先把本地数据导出成sql格式文件,并导入到服务器
--》进入服务器数据库:mysql -h127.0.0.1 -uroot -p
--》创建同名数据库:create database copyright;
--》使用use copyright; 导入:source copyright.sql; //在sql文件目录下
--》修改相关配置文件