webForumDet fria alternativet

Funka mot php

Databaser & SQL

3 svar · 214 visningar · startad av nanne

Medlem sedan dec. 19991 749 inlägg
Frågan#1

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

Medlem sedan juni 2000114 inlägg
#2

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.

Medlem sedan nov. 2000432 inlägg
#3

mysql_connect(<address>, <username>, <password> );

du kan alltså connecta som vem som helst :)

Medlem sedan dec. 19991 749 inlägg
#4

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

259 ms totalt · 4 externa anrop · v20260731065814-full.1dc6f849
123 ms — deklarationer (db)
0 ms — hämta statistik (cache)
129 ms — hämta tråd, inlägg och bilagor (db)
127 ms — ändringar (db)