老师能帮我看下这些代码吗?我将编码改成utf8后复制到WampServer里面的mysql时总是提示
ERROR 1044 (42000): Accès refusé pour l'utilisateur: ''@'@localhost'. Base 'shopeeic'
ERROR 1046 (3D000): Aucune base n'a été sélectionnée
CREATE DATABASE IF NOT EXISTS `shopeeic`;
USE `shopeeic`;
DROP TABLE IF EXISTS `eeic_admin`;
CREATE TABLE `eeic_admin`(
`id` tinyint unsigned auto_increment key,
`username` varchar(20) not null unique,
`password` char(32) not null,
`email` varchar(50) not null
);
DROP TABLE IF EXISTS `eeic_cate`;
CREATE TABLE `eeic_cate`(
`id` smallint unsigned auto_increment key,
`cName` varchar(50) unique
);
DROP TABLE IF EXISTS `eeic_pro`;
CREATE TABLE `eeic_pro`(
`id` int unsigned auto_increment key,
`pName` varchar(50) not null unique,
`pSn` varchar(50) not null,
`pNum` int unsigned default 1,
`mPrice` decimal(10,2) not null,
`iPrice` decimal(10,2) not null,
`pDesc` text,
`pImg` varchar(50) not null,
`pubTime` int unsigned not null,
`isShow` tinyint(1) default 1,
`isHot` tinyint(1) default 0,
`cId` smallint unsigned not null,
);
DROP TABLE IF EXISTS `eeic_user`;
CREATE TABLE `eeic_user`(
`id` int unsigned auto_increment key,
`userName` varchar(20) not null unique,
`password` char(32) not null,
`sex` enum("男","女","保密") not null default "保密",
`face` varchar(50) not null,
`regTime` int unsigned not null
);
DROP TABLE IF EXISTS `eeic_album`;
CREATE TABLE `eeic_album`(
`id` int unsigned auto_increment key,
`pid` int unsigned not null,
`albumPath` varchar(50) not null
);