6

忆流年网易云任务程序旧版数据转新版图文教程

 3 years ago
source link: https://www.iyouhun.com/post-172.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
忆流年网易云任务程序旧版数据转新版图文教程 - 游魂博客-分享技术,资源共享
首页 / 忆流年网易云任务程序旧版数据转新版图文教程

自己动手,丰衣足食,还减少了数据泄露的风险!

ps:在操作新旧数据前,最好都备份一下,防止数据丢失,/手动滑稽

无需下载任何软件!无需下载任何软件!无需下载任何软件!

注:也可以在新版数据库管理内直接导入旧版的用户表(ylnwyy_user) 然后执行下面的插入命令(第二条 sql 命令)

1.进入旧版的数据库管理

点击 SQL 执行如下命令,创建新表

CREATE TABLE IF NOT EXISTS `yln_user` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint(19) NOT NULL,
  `uin` bigint(11) DEFAULT NULL,
  `pwd` varchar(128) DEFAULT NULL,
  `vip` date DEFAULT NULL,
  `agent` int(1) NOT NULL DEFAULT '0',
  `integral` int(11) NOT NULL DEFAULT '0',
  `musicu` varchar(521) NOT NULL,
  `csrf` varchar(521) NOT NULL,
  `ckstatus` int(1) NOT NULL DEFAULT '1',
  `account_status` int(1) NOT NULL DEFAULT '0',
  `token` varchar(64) NOT NULL,
  `song` varchar(6) NOT NULL DEFAULT 'close',
  `sign` varchar(6) NOT NULL DEFAULT 'close',
  `song_date` date DEFAULT NULL,
  `sign_date` date DEFAULT NULL,
  `created_at` datetime DEFAULT NULL,
  `updated_at` datetime DEFAULT NULL,
  `deleted_at` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=10001 ;

执行完毕会多出一个 yln_user的表

2.继续进入数据库 SQL执行命令

insert into yln_user (
    user_id, token, musicu, csrf, vip, song_date, 
    sign_date, created_at, ckstatus
) 
select 
    userId, 
    token, 
    musicu, 
    csrf, 
    vipDate, 
    songDate, 
    signDate, 
    regDate, 
    cookieStatus 
from 
    ylnwyy_user

插入成功!

3.导出数据库

选择 yln_user 这个新表 点击导出

4.去新版数据库管理删除旧的 yln_user表,导入刚刚下载的新表

不细述了,傻瓜式操作

2000+用户完美运行。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK