Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-07-19, 18:41


zajacp1

asdfghjnklngnbfs






Wiek: 28
Na forum: 6103 dni
Posty: 610

Piwa: 726

Respekt: 145,6
Respekt: 145,6

Witajcie!
Bawi? si? nieco MySQL itp. i postanowi?em spr?bowa? odpali? serwer na swoim VPSie. Forum i panel s? poprawnie skonfigurowane, plik connect.txt skryptu Origin-RP jest r?wnie? poprawnie skonfigurowany lecz podczas uruchamiania serwera w logach zapisuj? si? takie b??dy
Kod:

[Thu Jul 19 16:38:43 2012] -------------------------
[Thu Jul 19 16:38:43 2012] Logging Started
[Thu Jul 19 16:38:43 2012] -------------------------
[Thu Jul 19 16:38:43 2012] Function: mysql_init executed with result: "0".
[Thu Jul 19 16:38:43 2012] Error (0): Failed to connect. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_query called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_store_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_fetch_row called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Error (0): Function: mysql_free_result called when not connected to any database. Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2).
[Thu Jul 19 16:38:43 2012] Function: mysql_init executed with result: "2".


Nie mam poj?cia jakim cudem serwer nie mo?e po??czy? si? z MySQL kt?re stoi na LOCALHO?CIE! ( wszystko VPS - forum, sa-mp, sql ) Licz? na szybk? pomoc. Pozdrawiam! :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-19, 18:58


SkateR121

F-A-C-K J-U






Wiek: 29
Na forum: 5457 dni
Posty: 46
Nick w MP: SkateR

Piwa: 976

Respekt: 43,4

Ostrzeżeń: 100%
Zamisat localhost daj ip vps w connect.

Podpis

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-19, 19:32


zajacp1

asdfghjnklngnbfs






Wiek: 28
Na forum: 6103 dni
Posty: 610

Piwa: 726

Respekt: 145,6
Respekt: 145,6

Niestety, nie dzia?a.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-19, 19:59


SkateR121

F-A-C-K J-U






Wiek: 29
Na forum: 5457 dni
Posty: 46
Nick w MP: SkateR

Piwa: 976

Respekt: 43,4

Ostrzeżeń: 100%
Wgra?e?baze mapki ?

Podpis

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-19, 20:01


zajacp1

asdfghjnklngnbfs






Wiek: 28
Na forum: 6103 dni
Posty: 610

Piwa: 726

Respekt: 145,6
Respekt: 145,6

Oczywi?cie. Jak ju? wspomina?em forum jest po??czone ze skryptem i jest wszystko poprawnie skonfigurowane.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-20, 08:31


ToFFiK12

U-RP S-RP






Wiek: 36
Na forum: 5589 dni
Posty: 65
Nick w MP: Nevis

Piwa: 115

Respekt: 28,5

Kod:

/var/lib/mysql/mysql.sock

Pewnie na VPS nie masz tego pliku, niekt?re aplikacje go wymagaj?,


Kod:

touch /var/run/mysql/mysql.sock
chown -R mysql:mysql /var/lib/mysql
chown -R mysql:mysql /var/run/mysql/mysql.sock


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-20, 11:17


zajacp1

asdfghjnklngnbfs






Wiek: 28
Na forum: 6103 dni
Posty: 610

Piwa: 726

Respekt: 145,6
Respekt: 145,6

Pr?bowa?em wywo?a? komendy kt?re mi poda?e? i system daje takie odpowiedzi:
Kod:

root@vgame:~/samp03# touch /var/run/mysql/mysql.sock
touch: cannot touch `/var/run/mysql/mysql.sock': No such file or directory
root@vgame:~/samp03# chown -R mysql:mysql /var/lib/mysql
root@vgame:~/samp03# chown -R mysql:mysql /var/run/mysql/mysql.sock
chown: cannot access `/var/run/mysql/mysql.sock': No such file or directory
root@vgame:~/samp03#


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-20, 16:05


ToFFiK12

U-RP S-RP






Wiek: 36
Na forum: 5589 dni
Posty: 65
Nick w MP: Nevis

Piwa: 115

Respekt: 28,5

Stw?rz ten katalog, pewnie nie ma "mysql" jak nie instalowa?e? servera tylko clienta. BTW aptitude install mysq-client lub mysql-server

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-20, 16:14


Piorun







Wiek: 32
Na forum: 6712 dni
Posty: 1837
Nick w MP: Piorun

Piwa: 516

Respekt: 480,7
Respekt: 480,7

Kiedy mysql.sock to plik, a nie katalog :shock: .

Podpis
Możesz mnie znaleźć na: Facebook
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-07-20, 16:21


zajacp1

asdfghjnklngnbfs






Wiek: 28
Na forum: 6103 dni
Posty: 610

Piwa: 726

Respekt: 145,6
Respekt: 145,6

Instalowa?em serwer i klienta, wszystko jest poprawnie, tylko nie ma pliku mysql.sock w wy?ej wymienionym katalogu.

Postaw piwo autorowi tego posta
 

 
Tagi: origin-rp :: połączenie :: mysql
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku