Ho un file sql.txt che mi dà una serie di problemi nella creazione delle tabelle.
questo è il file
	
	
	
		
Volevo chiedere sul mio WAMP devo sostituire quest dati
	
	
	
		
Con questi?
	
	
	
		
Oppure c'è qualcos'altro da modificare?
				
			questo è il file
		Codice:
	
	CREATE DATABASE RegistrationForm
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE utf8_general_ci;
create user RegForm_user;
grant all on RegistrationForm.* to 'RegForm_user'@'localhost' identified by '@RegistrationForm12passWrd';
use RegistrationForm
 
# *************** create tables *****************
Create Table `login` (
  `id` INT NOT NULL AUTO_INCREMENT ,
  `forename` VARCHAR( 64 ) NOT NULL ,
  `surname` VARCHAR( 64 ) NOT NULL ,
  `email` VARCHAR( 64 ) NOT NULL ,
  `password` VARCHAR( 80 ) NOT NULL ,
  `resetpassword` VARCHAR( 80 ) DEFAULT NULL ,
  `confirmcode` VARCHAR(32) NOT NULL,
  `registrationStart` DATETIME DEFAULT NULL ,
  `membershipStart` DATETIME DEFAULT NULL ,
  PRIMARY KEY ( id )
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `failed_logins` (
  `username` VARCHAR(64) NOT NULL,
  `login_count` INT(2) DEFAULT NULL,
  `last_time` INT(11) DEFAULT NULL,
  `address` VARCHAR(64) NOT NULL,
  PRIMARY KEY ( username )
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `errorLogs` (
  `id` INT NOT NULL AUTO_INCREMENT ,
  `email` VARCHAR(64) DEFAULT NULL,
  `errorlog` MEDIUMTEXT,
  `errornumber` VARCHAR(20) DEFAULT NULL,
  `errorDateTime` DATETIME DEFAULT NULL ,
  PRIMARY KEY ( id )
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
	Volevo chiedere sul mio WAMP devo sostituire quest dati
		Codice:
	
	create user RegForm_user;
grant all on RegistrationForm.* to 'RegForm_user'@'localhost' identified by '@RegistrationForm12passWrd';
use RegistrationForm
	Con questi?
		Codice:
	
	create user RegForm_user;
grant all on RegistrationForm.* to 'root'@'localhost' identified by '@roor';
use RegistrationForm
	Oppure c'è qualcos'altro da modificare?
			
				Ultima modifica: