时间:2021-05-18
//此为bbs.sql
CREATE TABLE bbs_area (
id int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
master varchar(150) NOT NULL,
banner varchar(150) NOT NULL,
body text NOT NULL,
email varchar(50),
login varchar(20),
passwd varchar(20),
PRIMARY KEY (id)
);
INSERT INTO bbs_area VALUES ( '1', 'master', '癚阶跋', '', 'jerry@mail.jerry.com.tw', 'master', '111111');
CREATE TABLE bbs_sml (
id int(8) unsigned DEFAULT '0' NOT NULL auto_increment,
sid int(8) unsigned DEFAULT '0' NOT NULL,
email char(60) NOT NULL,
PRIMARY KEY (id),
KEY sid (sid),
KEY email (email)
);
CREATE TABLE bbs_subj (
id int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
aid int(10) unsigned DEFAULT '0' NOT NULL,
banner varchar(150) NOT NULL,
body text NOT NULL,
poster varchar(20) NOT NULL,
email varchar(50),
pip varchar(20) NOT NULL,
wdate datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
views int(8) unsigned DEFAULT '1' NOT NULL,
good int(2) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (id),
KEY aid (aid),
KEY good (good),
KEY wdate (wdate)
);
CREATE TABLE bbs_docs (
id int(10) unsigned DEFAULT '0' NOT NULL auto_increment,
aid int(10) unsigned DEFAULT '0' NOT NULL,
sid int(10) unsigned DEFAULT '0' NOT NULL,
banner varchar(150) NOT NULL,
body text NOT NULL,
poster varchar(20) NOT NULL,
email varchar(50),
pip varchar(20) NOT NULL,
wdate datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
views int(8) unsigned DEFAULT '1' NOT NULL,
good int(2) unsigned DEFAULT '0' NOT NULL,
PRIMARY KEY (id),
KEY aid (aid),
KEY good (good),
KEY wdate (wdate)
);
CREATE TABLE bbs_sel (
id int(8) unsigned DEFAULT '0' NOT NULL auto_increment,
sid int(8) unsigned DEFAULT '0' NOT NULL,
banner char(80) NOT NULL,
sel_0 char(80) NOT NULL,
sel_1 char(80) NOT NULL,
sel_2 char(80) NOT NULL,
sel_3 char(80) NOT NULL,
sel_4 char(80) NOT NULL,
sel_5 char(80) NOT NULL,
sel_6 char(80) NOT NULL,
sel_7 char(80) NOT NULL,
sn_0 int(8) DEFAULT '0' NOT NULL,
sn_1 int(8) DEFAULT '0' NOT NULL,
sn_2 int(8) DEFAULT '0' NOT NULL,
sn_3 int(8) DEFAULT '0' NOT NULL,
sn_4 int(8) DEFAULT '0' NOT NULL,
sn_5 int(8) DEFAULT '0' NOT NULL,
sn_6 int(8) DEFAULT '0' NOT NULL,
sn_7 int(8) DEFAULT '0' NOT NULL,
PRIMARY KEY (id)
);
//此为sql.php3
<?
$sql['user']="root";
$sql['passwd']="戈畐盞絏";
$sql['db']="恶戈畐嘿";
$sql['host']="localhost";
?>
声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。
phpMyAdmin-?펳Ξ??Ԙȫmysql?չ??ǫ?첩PHPŤ&#
代码如下:$M2=cache_read('module_'.$MODULE[phpcms][module].'.php');官方
在《学习PHP&MYSQL之——字符编码篇(一)》中介绍了Unicode与UTF-8的转换关系,总结了一个UTF-8的编码规则,根据这个编码规则,写一个UTF-
2,查找;extension=php_mysql.dll,将前面的引号“;”去掉。3,iis加载的是不是php5isapi.dll,不是
原因:php5.3后,不支持连接mysql地址用“localhost”,连接地址要改用“127.0.0.1”解决