![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 706 Pomógł: 108 Dołączył: 12.03.2010 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
mam problem z połączeniem się z bazą MySQL z poziomu PHP. W życiu kilka razy instalowałem już Apache + PHP + MySQL, ale tym razem nie mogę się połączyć z bazą. Funkcja mysql_connect się odpala (rozszerzenie jest dodane), ale strona usiłuje się łączyć aż mija connection timeout. Łączenie z bazą przez oficjalnego klienta bazy MySQL działa (choć na początku też mi nie działało). Mam PHP w wersji 5.3.2 i MySQL w wersji 5.1.46. Proszę o pomoc. (IMG:style_emoticons/default/smile.gif) Ten post edytował croc 12.05.2010, 22:17:03 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 706 Pomógł: 108 Dołączył: 12.03.2010 Ostrzeżenie: (0%) ![]() ![]() |
Log Apache z ostatniego uruchomienia:
[Wed May 12 16:03:36 2010] [warn] pid file C:/Serwer/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Wed May 12 16:03:37 2010] [notice] Apache/2.2.15 (Win32) PHP/5.3.2 configured -- resuming normal operations [Wed May 12 16:03:37 2010] [notice] Server built: Mar 4 2010 11:27:46 [Wed May 12 16:03:37 2010] [notice] Parent: Created child process 2000 httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.2.102 for ServerName httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.2.102 for ServerName [Wed May 12 16:03:38 2010] [notice] Child 2000: Child process is running [Wed May 12 16:03:38 2010] [notice] Child 2000: Acquired the start mutex. [Wed May 12 16:03:38 2010] [notice] Child 2000: Starting 64 worker threads. [Wed May 12 16:03:38 2010] [notice] Child 2000: Starting thread to listen on port 80. [Wed May 12 16:05:53 2010] [error] [client 127.0.0.1] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: [2002] Pr\xf3ba po\xb3\xb9czenia nie powiod\xb3a si\xea, poniewa\xbf po\xb3\xb9czona strona nie (trying to connect via tcp://localhost:3306) in D:\\Projekty\\WWW\\index.php on line 2 [Wed May 12 16:05:53 2010] [error] [client 127.0.0.1] PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Pr\xf3ba po\xb3\xb9czenia nie powiod\xb3a si\xea, poniewa\xbf po\xb3\xb9czona strona nie odpowiedzia\xb3a poprawnie po ustalonym okresie czasu lub utworzone po\xb3\xb9czenie nie powiod\xb3o si\xea, poniewa\xbf po\xb3\xb9czony host nie odpowiedzia\xb3.\r\n in D:\\Projekty\\WWW\\index.php on line 2 [Wed May 12 16:05:53 2010] [error] [client 127.0.0.1] PHP Fatal error: Maximum execution time of 30 seconds exceeded in D:\\Projekty\\WWW\\index.php on line 20 [Wed May 12 16:05:53 2010] [error] [client 127.0.0.1] File does not exist: D:/Projekty/WWW/favicon.ico Ten post edytował croc 12.05.2010, 15:11:56 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 9.10.2025 - 16:37 |