Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> problem ze mysql pod php
dymsza
post 1.09.2006, 01:07:58
Post #1





Grupa: Zarejestrowani
Postów: 62
Pomógł: 4
Dołączył: 24.08.2006

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


mam problem z serverem php po odopaleniu skrypnuj jak nizej nie pojawiam mi sie nic po za 123..(niema ani informac o ustanowieniu poloczenia ani o braku poloczenia ) server php zainstalowany jest pod windowsem wie ktos co to moze byc questionmark.gif?

[php]<?php
echo '123...';
$link = mysql_connect('localhost', 'root', 'niepowiem')
or die('Nie można się połączyć: ' . mysql_error());
print ('Połączenie nawiązane');
mysql_create_db("zawodnicy");
mysql_close($link);
?>
Go to the top of the page
+Quote Post
Cysiaczek
post 1.09.2006, 01:19:25
Post #2





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Skrypt działa - zobacz, czy masz włączone raportownaie błędów w php.ini . Jeśli nie, to włącz. Na pewno masz mysql'a zainstalowanego? Sprawdź jeszcze, czy wpisujesz poprawne dane do połączenia.

Pozdrawiam.


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
dymsza
post 1.09.2006, 01:28:27
Post #3





Grupa: Zarejestrowani
Postów: 62
Pomógł: 4
Dołączył: 24.08.2006

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


sytuacja sie troche poprawila ale teraz mam

Nie można się połšczyć: Client does not support authentication protocol requested by server; consider upgrading MySQL client
Go to the top of the page
+Quote Post
Cysiaczek
post 1.09.2006, 01:39:29
Post #4





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Spróbuj przez mysqli_connect() , bo masz z tego co widzę mysql'a 5, albo używaj PDO. Jeśli jednak koniecznie chcesz mysql_xxx to poszukaj na forum topików związanych z konfiguracją php i przejrzyj manual. Zaleca się jednak stosowanie PDO.

Pozdrawiam.

Ten post edytował Cysiaczek 1.09.2006, 01:39:45


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
dymsza
post 1.09.2006, 01:57:19
Post #5





Grupa: Zarejestrowani
Postów: 62
Pomógł: 4
Dołączył: 24.08.2006

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


Fatal error: Call to undefined function: mysqli_connect() in E:\public_html\index.php on line 3

uzywam mysql 4.cos tam

co to jest PDO questionmark.gif?
Go to the top of the page
+Quote Post
Cysiaczek
post 1.09.2006, 02:07:30
Post #6





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




0. Uaktualnij biblioteki php odpowiedzialne za MySQL'a.
1. Jaką wersję php posiadasz?
2.
Cytat
uzywam mysql 4.cos tam

Akurat to "coś tam" jest najważniejsze w tym wypadku :/

3. Poczytaj o PDO w manualu

Pozdrawiam.


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
dymsza
post 2.09.2006, 01:32:18
Post #7





Grupa: Zarejestrowani
Postów: 62
Pomógł: 4
Dołączył: 24.08.2006

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


my sql 4.1.7
php 4.4.4 czyli naj z seri 4




napisze odpiwec moze kogos to zaciekawi zmienil sie sposub logowania i server tzreba odplac z parametrem --old-passwords
Go to the top of the page
+Quote Post

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 - 08:38