Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Mam problem z Mysql
Smash
post 24.12.2003, 13:08:36
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 7.05.2003
Skąd: Przemysl

Ostrzeżenie: (0%)
-----


[sql:1:56c1c8d6be]create table chat.user (
uid integer auto_increment primary key,
name varchar(20),
last timestamp,
rid integer,
pass varchar(64))
type=heap;

create table chat.room (
rid integer auto_increment primary key,
name varchar(20),
descript varchar(255),
typ varchar(1),
adminid integer)
type=heap;

create table chat.message (
time timestamp,
rid integer,
send_id integer,
rcpt_id integer,
message text)
type=heap;

create table chat.session (
uid integer,
time timestamp,
skey varchar(64),
ip varchar(16))
type=heap;

grant all privileges on chat.* to chat_user@localhost
identified by 'webpass';

insert into chat.user values (1, 'admin', 0, 0, PASSWORD('admin'));


insert into chat.room values (null, 'General', 'This is default room', 'N', 100);
insert into chat.room values (null, 'Special', 'This room is for private messages...', 'P', 200);
[/sql:1:56c1c8d6be]

Skrypt ten odwoluje sie do bazy danych chat ale niestety ja nie mam dostepu do bazy o takiej nazwie... Co (jesli cos mozna) powinienem zmienic, aby skrypt dzialal poprawnie. Mam dostep do bazy o nazwie admin35.

Prosze o Pomoc !!
Go to the top of the page
+Quote Post

Posty w temacie
- Smash   Mam problem z Mysql   24.12.2003, 13:08:36
- - Indianin   Tabele nazywają się "chat.blabla" , a nie baza .   24.12.2003, 14:48:34
- - Smash   :/   24.12.2003, 14:56:32
- - Indianin   Musisz poszukać i skonfigurować plik config.php (l...   24.12.2003, 15:18:07
- - Smash   :)   24.12.2003, 15:36:09
- - [Regis]   Mi sie wydaje ze skladnia INSERTA to: INSERT INTO...   24.12.2003, 22:24:10
- - Smash   Pomogło   25.12.2003, 10:47:58
- - spenalzo   Re: Pomogło   25.12.2003, 23:43:43


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 18.07.2025 - 15:30