Skip to content

关于音乐插件的安装之数据库文件导入

2008 十二月 6
by 荒野无灯

这是数据库导入文件:

方法1 ,从phpmyadmin导入
进入phpmyadmin 后,

方法2
.从discuz后台执行SQL语句 的方法:
以下为干净的SQL语句 :
下载SQL文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
DROP TABLE IF EXISTS `music_info`;
CREATE TABLE IF NOT EXISTS `music_info` (
  `mid` int(10) unsigned NOT NULL auto_increment,
  `uid` int(10) unsigned NOT NULL,
  `song_name` char(50) default NULL,
  `singer` char(50) default NULL,
  `url` char(100) NOT NULL,
  PRIMARY KEY  (`mid`)
) ENGINE=MyISAM  DEFAULT CHARSET=gbk AUTO_INCREMENT=2 ;

INSERT INTO `music_info` (`mid`, `uid`, `song_name`, `singer`, `url`) VALUES
(1, 1, 'so goodbye', 'unknown', 'http://www.szlnzx.com/video/UpLoadFile/sogoodbye.mp3');

DROP TABLE IF EXISTS `play_mod`;
CREATE TABLE IF NOT EXISTS `play_mod` (
  `uid` int(10) unsigned NOT NULL,
  `autostart` char(10) NOT NULL default 'true',
  `mod` char(5) NOT NULL default 'one'
) ENGINE=MyISAM DEFAULT CHARSET=gbk;

INSERT INTO `play_mod` (`uid`, `autostart`, `mod`) VALUES
(1, 'true', 'one');



DROP TABLE IF EXISTS `user_music`;
CREATE TABLE IF NOT EXISTS `user_music` (
  `uid` int(10) unsigned NOT NULL,
  `mid` int(10) unsigned NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=gbk;



INSERT INTO `user_music` (`uid`, `mid`) VALUES
(1, 1);

在后台执行:

执行成功:

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=272

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS