![]() |
![]() |
![]()
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 !! |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 100 Pomógł: 0 Dołączył: 19.04.2003 Skąd: Wrocław Ostrzeżenie: (0%) ![]() ![]() |
Mi sie wydaje ze skladnia INSERTA to:
[sql:1:486c5c512b]INSERT INTO baza.tabela (lista pól) VALUES (wartosci);[/sql:1:486c5c512b] Wiec jesli pisze chat.USER to znaczy ze musisz miec baze chat a w niej tabele user. Jak masz inna nazwe bazy, to musisz zmienic chat w zapytaniach insert na nazwe tej bazy... |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 19:31 |