Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi A - F > Basi di dati ~ informatica triennale > Dubbio progetto Basi
Pages (9): « First ... « 4 5 6 7 [8] 9 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
antares85
.illuminato.

User info:
Registered: Oct 2005
Posts: 197 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 6:16:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusa morte2097 potresti chiarirmi meglio il concetto:

"ho salvato l'utente con il nick e la password (nei grant)"

come si fa a salvare nick e pwd (e altri dati) nei grant? la mia ignorantezza mi dice che con i grant si possono solo assegnare o togliere permessi...

13-05-2009 12:54
Click Here to See the Profile for antares85 Click here to Send antares85 a Private Message Find more posts by antares85 Add antares85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
morte2097
.primate.

User info:
Registered: Sep 2004
Posts: 68 (0.01 al dì)
Location: --------------------------------
Corso: info
Anno: primo
Time Online: 1 Day, 14:12:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

allora
$nime è il nick
$pwd è la password

$sql2 = " GRANT INSERT,SELECT,UPDATE,DELETE ON mondo.*
TO '$nime'@localhost
IDENTIFIED BY '$pwd'";

13-05-2009 16:29
Click Here to See the Profile for morte2097 Click here to Send morte2097 a Private Message Find more posts by morte2097 Add morte2097 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
morte2097
.primate.

User info:
Registered: Sep 2004
Posts: 68 (0.01 al dì)
Location: --------------------------------
Corso: info
Anno: primo
Time Online: 1 Day, 14:12:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

automaticamente crea un user nel database "mysql" nella tabella "user" con relativa password.

13-05-2009 16:35
Click Here to See the Profile for morte2097 Click here to Send morte2097 a Private Message Find more posts by morte2097 Add morte2097 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
antares85
.illuminato.

User info:
Registered: Oct 2005
Posts: 197 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 6:16:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ah ok, mysql, mi ero perso questo dettaglio :P
grazie!

13-05-2009 17:21
Click Here to See the Profile for antares85 Click here to Send antares85 a Private Message Find more posts by antares85 Add antares85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
antares85
.illuminato.

User info:
Registered: Oct 2005
Posts: 197 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 6:16:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

e di conseguenza se poi all'utente devi revocare i permessi perchè non è di turno fai una revoke insert, delete, update ON '$nime'@localhost ?

13-05-2009 17:24
Click Here to See the Profile for antares85 Click here to Send antares85 a Private Message Find more posts by antares85 Add antares85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
morte2097
.primate.

User info:
Registered: Sep 2004
Posts: 68 (0.01 al dì)
Location: --------------------------------
Corso: info
Anno: primo
Time Online: 1 Day, 14:12:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

no no calma, io i permessi li revoco solo quando elimino un utente, per il turno uso un attributo in nazione, 1 se è il suo turno, 0 se non lo è.

13-05-2009 18:16
Click Here to See the Profile for morte2097 Click here to Send morte2097 a Private Message Find more posts by morte2097 Add morte2097 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
antares85
.illuminato.

User info:
Registered: Oct 2005
Posts: 197 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 6:16:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusa ancora morte2097, vediamo se ho capito bene:
tu usi un campo boolean che indica se un giocatore è di turno o meno.
dubbio1: crei l'utente tramite una funzione mysql che ti permette di creare appunto l'utente assegnandogli user, password e permessi ? (io uso postgres e ce n'è una simile). oppure prima crei l'utente e poi gli assegni i permessi?
dubbio 2: se non sbaglio dicevi che i grant li assegnavi solo in fase di registrazione; ma se poi non li assegni/revochi durante il gioco a che servono? tanto vale far visualizzare determinate pagine per effettuare determinate azioni in base al valore del campo boolean che indica se il giocatore è di turno o no...anche perchè non penso sia obbligatorio assegnare i permessi, se non lo si fa credo sia implicito che l'utente appena creato li abbia tutti...

25-05-2009 21:51
Click Here to See the Profile for antares85 Click here to Send antares85 a Private Message Find more posts by antares85 Add antares85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
antares85
.illuminato.

User info:
Registered: Oct 2005
Posts: 197 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 6:16:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ps: te crei l'utente con una sorta di create user o semplicemente aggiungi un record alla tabella dei giocatori?

25-05-2009 21:54
Click Here to See the Profile for antares85 Click here to Send antares85 a Private Message Find more posts by antares85 Add antares85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ste182
.arcimaestro.

User info:
Registered: Oct 2004
Posts: 258 (0.03 al dì)
Location:
Corso: informatica
Anno:
Time Online: 2 Days, 5:06:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

scusate, ma voi ogni volta che registrate un utente, lo create e gli date i permessi pure su SQL?? che senso ha?:shock:
io ho creato un solo utente "basi" con i relativi permessi, ogni connessione al db utilizza tale utente.

__________________
Live Fast, Die Fun

Last edited by ste182 on 01-06-2009 at 19:04

28-05-2009 10:48
Click Here to See the Profile for ste182 Click here to Send ste182 a Private Message Find more posts by ste182 Add ste182 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
antares85
.illuminato.

User info:
Registered: Oct 2005
Posts: 197 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 6:16:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

tutti quelli che si collegano usano un utente solo? e come distingui chi è di turno da chi non lo è?

03-06-2009 20:53
Click Here to See the Profile for antares85 Click here to Send antares85 a Private Message Find more posts by antares85 Add antares85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DarkSchneider
Why so serious?

User info:
Registered: Feb 2004
Posts: 1250 (0.16 al dì)
Location: Brescia
Corso: Informatica
Anno: out of bounds :/
Time Online: 26 Days, 1:01:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by antares85
tutti quelli che si collegano usano un utente solo? e come distingui chi è di turno da chi non lo è?


beh, per quello basterebbe un campo in una qualsiasi tabella
in cui viene specificato il nome utente che ha preso il turno
in quel determinato momento..

a ogni cambio turno il campo viene aggiornato col nome utente
che ha il turno..

04-06-2009 09:49
Click Here to See the Profile for DarkSchneider Click here to Send DarkSchneider a Private Message Find more posts by DarkSchneider Add DarkSchneider to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ideafix
.grande:maestro.

User info:
Registered: Oct 2004
Posts: 953 (0.13 al dì)
Location: Melegnano (MI)
Corso: Informatica
Anno: Dottore!
Time Online: 27 Days, 3:05:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io ho fatto come ste182, un solo utente , non servono certo dei grant per gestire la turnazione.
Ho consegnato il progetto nella sessione di Aprile , ed il prof. non ha avuto problemi su questo punto!

04-06-2009 10:40
Click Here to See the Profile for ideafix Click Here to See the Blog of ideafix Click here to Send ideafix a Private Message Find more posts by ideafix Add ideafix to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Amorphis
.precettore.

User info:
Registered: Jan 2008
Posts: 81 (0.01 al dì)
Location:
Corso: informatica
Anno: 2
Time Online: 1 Day, 10:59:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

anchio uso un solo utente per gestire il gioco .
basta una tabella Nome,PWd etc ... per il login
mi sembra strano se in uno gioco online ci sono 1000 utenti sarano anche 1000 utenti con permessi sul DB .

06-06-2009 11:48
Click Here to See the Profile for Amorphis Click here to Send Amorphis a Private Message Find more posts by Amorphis Add Amorphis to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
antares85
.illuminato.

User info:
Registered: Oct 2005
Posts: 197 (0.03 al dì)
Location: milano
Corso: informatica
Anno: 2
Time Online: 1 Day, 6:16:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

grazie per i chiarimenti!

08-06-2009 21:26
Click Here to See the Profile for antares85 Click here to Send antares85 a Private Message Find more posts by antares85 Add antares85 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Amorphis
.precettore.

User info:
Registered: Jan 2008
Posts: 81 (0.01 al dì)
Location:
Corso: informatica
Anno: 2
Time Online: 1 Day, 10:59:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao
ho qualche domanda.

1) come avete implementato le strade ?
l'unica cosa che mi viene in mente e' una table con 2 colone DA,A
che significa che esiste una starada da .. a , e poi per calcolare i PM neccesari per arrivare da a ad z cosa si puo' fare? dijkstra?

2) avete usato qualcosa altro di html e php ? javascript etc?

16-06-2009 13:11
Click Here to See the Profile for Amorphis Click here to Send Amorphis a Private Message Find more posts by Amorphis Add Amorphis to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 14:40.    Post New Thread    Post A Reply
Pages (9): « First ... « 4 5 6 7 [8] 9 »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.046 seconds (80.25% PHP - 19.75% MySQL) con 26 query.