nanneMedlem sedan dec. 19991 047 inlägg
Få se nu. Tänker jag rätt.
Jag har Apache 1.3.19 på min Redhat 7 maskin. På denna har jag även nyaste mysql kompilerat för just min fina maskin. Jag får dock inte tillgång till mysql när jag anropar från PHP.
Apache använder användaren nobody. Så det borde väl bara att lägga till en nobody användare i usertabellen i mysql databasen?
------------------
"Information wants to be free -- because it is now so easy to copy and distribute casually -- and information wants to be expensive -- because in an Information Age, nothing is so valuable as the right information at the right time."
- John Perry Barlow
nanne.net
ikarosMedlem sedan juni 2000120 inlägg
vad händer när du försöker göra en mysql_connect()?
tänk på att se till att mysql-modulen laddas när php startas.
BitstateMedlem sedan nov. 2000396 inlägg
mysql_connect(<address>, <username>, <password> );
du kan alltså connecta som vem som helst :)
nanneMedlem sedan dec. 19991 047 inlägg
Det funkar nu. Det var precis så jag hade tänkt ut :)
------------------
"Information wants to be free -- because it is now so easy to copy and distribute casually -- and information wants to be expensive -- because in an Information Age, nothing is so valuable as the right information at the right time."
- John Perry Barlow
nanne.net