Jump to content


Photo

Nao Consigo Acabar De Criar Meu Banco De Dados.


  • Faça o login para participar
6 replies to this topic

#1 TioKibi

TioKibi

    Novato no fórum

  • Usuários
  • 6 posts
  • Sexo:Não informado

Posted 14/04/2004, 19:06

Peguei um sistema de blog pra poder testar c o webscindiario ta funcionando..
So q tem um problema..ele pede pra fazer um table no banco de dados (axo q eh isso) com o seguinte:


#
# Table structure for table `blog`
#

CREATE TABLE blog (
id int(11) NOT NULL auto_increment,
title text NOT NULL,
content text NOT NULL,
date varchar(50) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM;

#
# Dumping sample data for table `blog`
#

INSERT INTO blog VALUES (1, 'Sample Blog Entry', '<p>This is just a sample entry. Simple HTML tags are supported in this field.</p>\r\n\r\n<p>Tags Supported:</p>\r\n\r\n<p>&lt;p&gt;&lt;/p&gt; - Paragraph<br>\r\n&lt;br&gt; - Line Break<br>\r\n&lt;hr&gt; - Horizontal Line<br>\r\n&lt;ul&gt;&lt;/ul&gt; - Unordered List<br>\r\n&lt;li&gt;&lt;/li&gt; - List Item<br>\r\n&lt;a href&gt;&lt;/a&gt; - Hyperlink<br>\r\n&lt;a name&gt;&lt;/a&gt; - Named Anchor<br>\r\n&lt;font&gt;&lt;/font&gt; - Font<br>\r\n&lt;h1&gt;&lt;/h1&gt; through &lt;h6&gt;&lt;/h6&gt; - Heading Tags<br>\r\n&lt;b&gt;&lt;/b&gt; - Bold<br>\r\n&lt;em&gt;&lt;/em&gt; - Italic</p>\r\n\r\n', 'Thu 26th Jun, 2003 04:07 pm');
INSERT INTO blog VALUES (2, 'Sample Blog Entry II', '&lt;p&gt;&lt;/p&gt; - Paragraph\r\n&lt;br&gt; - Line Break\r\n&lt;hr&gt; - Horizontal Line\r\n&lt;ul&gt;&lt;/ul&gt; - Unordered List\r\n&lt;li&gt;&lt;/li&gt; - List Item\r\n&lt;a href&gt;&lt;/a&gt; - Hyperlink\r\n&lt;a name&gt;&lt;/a&gt; - Named Anchor\r\n&lt;font&gt;&lt;/font&gt; - Font\r\n&lt;h1&gt;&lt;/h1&gt; through &lt;h6&gt;&lt;/h6&gt; - Heading Tags\r\n&lt;b&gt;&lt;/b&gt; - Bold\r\n&lt;em&gt;&lt;/em&gt; - Italic', 'Thu 26th Jun, 2003 04:29 pm');


mas onde eu ponho isso?No editor do banco de dados do webscindiario nao te espaco pra tudo isso, q q eu faco?

#2 AirFight

AirFight

    { www.BlackHawck ]

  • Usuários
  • 413 posts
  • Sexo:Não informado

Posted 14/04/2004, 19:14

Bom vc pode criar um arquivo instalar.php e executar isso atraves desse arquivo.

um exemplinho

<?
include("config.php");

$query = "CREATE TABLE teste";

mysql_query($query);

header("Location: paginadeconfirmacao.php");

?>


Edição feita por: AirFight, 14/04/2004, 19:16.

Eu!! Marcelo AirFight BlackHawk<

<?php

switch ($eu) {
case "Nick":
print "AirFight";
case "Nome":
print "Marcelo";


}

?>

#3 together

together

    AFCweb

  • Usuários
  • 282 posts
  • Sexo:Masculino
  • Localidade:Araraquara - SP
  • Interesses:aaaa

Posted 14/04/2004, 19:55

CREATE TABLE blog (
id int(11) NOT NULL auto_increment,
title text NOT NULL,
content text NOT NULL,
date varchar(50) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM;


INSERT INTO blog VALUES (1, 'Sample Blog Entry', '<p>This is just a sample entry. Simple HTML tags are supported in this field.</p>\r\n\r\n<p>Tags Supported:</p>\r\n\r\n<p>&lt;p&gt;&lt;/p&gt; - Paragraph<br>\r\n&lt;br&gt; - Line Break<br>\r\n&lt;hr&gt; - Horizontal Line<br>\r\n&lt;ul&gt;&lt;/ul&gt; - Unordered List<br>\r\n&lt;li&gt;&lt;/li&gt; - List Item<br>\r\n&lt;a href&gt;&lt;/a&gt; - Hyperlink<br>\r\n&lt;a name&gt;&lt;/a&gt; - Named Anchor<br>\r\n&lt;font&gt;&lt;/font&gt; - Font<br>\r\n&lt;h1&gt;&lt;/h1&gt; through &lt;h6&gt;&lt;/h6&gt; - Heading Tags<br>\r\n&lt;b&gt;&lt;/b&gt; - Bold<br>\r\n&lt;em&gt;&lt;/em&gt; - Italic</p>\r\n\r\n', 'Thu 26th Jun, 2003 04:07 pm');
INSERT INTO blog VALUES (2, 'Sample Blog Entry II', '&lt;p&gt;&lt;/p&gt; - Paragraph\r\n&lt;br&gt; - Line Break\r\n&lt;hr&gt; - Horizontal Line\r\n&lt;ul&gt;&lt;/ul&gt; - Unordered List\r\n&lt;li&gt;&lt;/li&gt; - List Item\r\n&lt;a href&gt;&lt;/a&gt; - Hyperlink\r\n&lt;a name&gt;&lt;/a&gt; - Named Anchor\r\n&lt;font&gt;&lt;/font&gt; - Font\r\n&lt;h1&gt;&lt;/h1&gt; through &lt;h6&gt;&lt;/h6&gt; - Heading Tags\r\n&lt;b&gt;&lt;/b&gt; - Bold\r\n&lt;em&gt;&lt;/em&gt; - Italic', 'Thu 26th Jun, 2003 04:29 pm');


Tenta agora :lol:

#4 thalesalan

thalesalan
  • Visitantes

Posted 14/04/2004, 20:41

Peguei um sistema de blog pra poder testar c o webscindiario ta funcionando..
So q tem um problema..ele pede pra fazer um table no banco de dados (axo q eh isso) com o seguinte:


#
# Table structure for table `blog`
#

CREATE TABLE blog (
id int(11) NOT NULL auto_increment,
title text NOT NULL,
content text NOT NULL,
date varchar(50) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM;

#
# Dumping sample data for table `blog`
#

INSERT INTO blog VALUES (1, 'Sample Blog Entry', '<p>This is just a sample entry. Simple HTML tags are supported in this field.</p>\r\n\r\n<p>Tags Supported:</p>\r\n\r\n<p>&lt;p&gt;&lt;/p&gt; - Paragraph<br>\r\n&lt;br&gt; - Line Break<br>\r\n&lt;hr&gt; - Horizontal Line<br>\r\n&lt;ul&gt;&lt;/ul&gt; - Unordered List<br>\r\n&lt;li&gt;&lt;/li&gt; - List Item<br>\r\n&lt;a href&gt;&lt;/a&gt; - Hyperlink<br>\r\n&lt;a name&gt;&lt;/a&gt; - Named Anchor<br>\r\n&lt;font&gt;&lt;/font&gt; - Font<br>\r\n&lt;h1&gt;&lt;/h1&gt; through &lt;h6&gt;&lt;/h6&gt; - Heading Tags<br>\r\n&lt;b&gt;&lt;/b&gt; - Bold<br>\r\n&lt;em&gt;&lt;/em&gt; - Italic</p>\r\n\r\n', 'Thu 26th Jun, 2003 04:07 pm');
INSERT INTO blog VALUES (2, 'Sample Blog Entry II', '&lt;p&gt;&lt;/p&gt; - Paragraph\r\n&lt;br&gt; - Line Break\r\n&lt;hr&gt; - Horizontal Line\r\n&lt;ul&gt;&lt;/ul&gt; - Unordered List\r\n&lt;li&gt;&lt;/li&gt; - List Item\r\n&lt;a href&gt;&lt;/a&gt; - Hyperlink\r\n&lt;a name&gt;&lt;/a&gt; - Named Anchor\r\n&lt;font&gt;&lt;/font&gt; - Font\r\n&lt;h1&gt;&lt;/h1&gt; through &lt;h6&gt;&lt;/h6&gt; - Heading Tags\r\n&lt;b&gt;&lt;/b&gt; - Bold\r\n&lt;em&gt;&lt;/em&gt; - Italic', 'Thu 26th Jun, 2003 04:29 pm');


mas onde eu ponho isso?No editor do banco de dados do webscindiario nao te espaco pra tudo isso, q q eu faco?

Joga no Phpmyadmin ;)

#5 **K@T@T@U**

**K@T@T@U**

    Quase lá

  • Usuários
  • 254 posts
  • Sexo:Não informado
  • Localidade:Nova Iguaçu - RJ
  • Interesses:Quase tudo

Posted 14/04/2004, 22:59

ai,o q esse TYPE=MyISAM faz???? (y)

#6 fly2k

fly2k

    Super Veterano

  • Usuários
  • 2262 posts
  • Sexo:Não informado

Posted 15/04/2004, 09:52

è o tipo de tabela do mysql...
pesquise mais em http://www.mysql.org
Quer aprender PHP? -> www.manjaphp.com.br
Tutoriais, código colaborativo (pastebin), curso de PHP, artigos e etc.

#7 thalesalan

thalesalan
  • Visitantes

Posted 15/04/2004, 11:51

Só que não é necessário por ele na tabela....
Podia ficar assim mesmo:

CREATE TABLE blog (
id int(11) NOT NULL auto_increment,
title text NOT NULL,
content text NOT NULL,
date varchar(50) NOT NULL default '',
PRIMARY KEY (id)
)






1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq