
O problema começou quando fui criar o banco de dados. Quando entrei no phpMyAdmin para importar o arquivo do Bloco de Notas, o mesmo não importou. Apareceu o seguinte erro:
Error
SQL query:
-- phpMyAdmin SQL Dump
-- version 2.9.0.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Mar 17, 2007 at 02:46 PM
-- Server version: 4.1.21
-- PHP Version: 4.4.2
--
-- Database: `sistemas_portal`
--
-- --------------------------------------------------------
--
-- Table structure for table `acessos`
--
CREATE TABLE `acessos` (
`Codigo` bigint( 6 ) NOT NULL AUTO_INCREMENT ,
`ip` varchar( 20 ) NOT NULL default '',
`browser` varchar( 20 ) NOT NULL default '',
`so` varchar( 20 ) NOT NULL default '',
`data` date NOT NULL default '0000-00-00',
PRIMARY KEY ( `codigo` )
) ENGINE = MYISAM DEFAULT CHARSET = latin1 AUTO_INCREMENT =304;
MySQL said:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'DEFAULT CHARSET=latin1 AUTO_INCREMENT=304' at line 8.
COMO DEVO PROCEDER PARA IMPORTAR O BANCO DE DADOS?
OBRIGADA