Skocz do zawartości
  • 0

połączenie skryptu z mysql


Pytanie

Rekomendowane odpowiedzi

  • 0
9 minut temu, Kormic napisał:

Jakieś błędy w konsoli?

jednak znalazłem błędy
 


 
[11:25:15 ERROR]: [Skript][MySQL] Could not establish a MySQL connection, SQLException: Access denied for user 'srv141303'@'%' to database 'skript'
[11:25:15 ERROR]: #!#!
[11:25:15 ERROR]: #!#! ===!!!=== Skript variable load error ===!!!===
[11:25:15 ERROR]: #!#! Unable to load (all) variables:
[11:25:15 ERROR]: #!#! Cannot connect to the database 'database 1'! Please make sure that all settings are correct and that the database software is running.
Odnośnik do komentarza
https://skript.pl/temat/46446-po%C5%82%C4%85czenie-skryptu-z-mysql/#findComment-292443
Udostępnij na innych stronach

  • 0
Teraz, hyhy123455 napisał:

jednak znalazłem błędy
 


 
[11:25:15 ERROR]: [Skript][MySQL] Could not establish a MySQL connection, SQLException: Access denied for user 'srv141303'@'%' to database 'skript'
[11:25:15 ERROR]: #!#!
[11:25:15 ERROR]: #!#! ===!!!=== Skript variable load error ===!!!===
[11:25:15 ERROR]: #!#! Unable to load (all) variables:
[11:25:15 ERROR]: #!#! Cannot connect to the database 'database 1'! Please make sure that all settings are correct and that the database software is running.

Upewnij się, że host, port, user i hasło są poprawne.

Rzuć jeszcze raz okiem na ustawienia w configu Skripta.

Zobacz również czy coś nie jest blokowane po stronie hostingu. Możliwe, że można coś odblokować w panelu, nie wiem.

Jak nie wiesz o co biega, przeczytaj jeszcze raz od początku wszystkie informacje w configu Skripta dot. ustawiania bazy danych.

Odnośnik do komentarza
https://skript.pl/temat/46446-po%C5%82%C4%85czenie-skryptu-z-mysql/#findComment-292445
Udostępnij na innych stronach

  • 0
14 minut temu, Kormic napisał:

Upewnij się, że host, port, user i hasło są poprawne.

Rzuć jeszcze raz okiem na ustawienia w configu Skripta.

Zobacz również czy coś nie jest blokowane po stronie hostingu. Możliwe, że można coś odblokować w panelu, nie wiem.

Jak nie wiesz o co biega, przeczytaj jeszcze raz od początku wszystkie informacje w configu Skripta dot. ustawiania bazy danych.

jeszcze to znalazłem


 
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 1 tab (config.sk, line 201: database 1:')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 218: file: ./plugins/Skript/variables.db')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 227: backup interval: 2 hours')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 248: monitor changes: true')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 249: monitor interval: 20 seconds')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 1 tab (config.sk, line 251: SQLite example:')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 254: type: disabled# change to line below to enable this database')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 257: pattern: db_.*# this pattern will save all variables that start with 'db_' in this SQLite database.')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 259: file: ./plugins/Skript/variables.db')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 264: backup interval: 0# 0 = don't create backups')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 265: monitor changes: false')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 266: monitor interval: 20 seconds')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 1 tab (config.sk, line 268: default:')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 273: type: CSV')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 275: pattern: .*')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 277: file: ./plugins/Skript/variables.csv')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 279: backup interval: 2 hours')
[11:43:28 ERROR]: [Skript] Checking for updates failed. Do you have Internet connection?
Odnośnik do komentarza
https://skript.pl/temat/46446-po%C5%82%C4%85czenie-skryptu-z-mysql/#findComment-292449
Udostępnij na innych stronach

  • 0
Godzinę temu, Kormic napisał:

No to źle coś zapisałeś. Spróbuj od nowa.

Podążaj za wskazówkami, które są zapisane w configu, a będziesz w stanie to zrobić.

a bo mam serwer na titanaxe i  czy mysql moze byc innego servera?

Odnośnik do komentarza
https://skript.pl/temat/46446-po%C5%82%C4%85czenie-skryptu-z-mysql/#findComment-292454
Udostępnij na innych stronach

  • 0
6 godzin temu, hyhy123455 napisał:

jeszcze to znalazłem


 
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 1 tab (config.sk, line 201: database 1:')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 218: file: ./plugins/Skript/variables.db')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 227: backup interval: 2 hours')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 248: monitor changes: true')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 249: monitor interval: 20 seconds')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 1 tab (config.sk, line 251: SQLite example:')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 254: type: disabled# change to line below to enable this database')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 257: pattern: db_.*# this pattern will save all variables that start with 'db_' in this SQLite database.')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 259: file: ./plugins/Skript/variables.db')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 264: backup interval: 0# 0 = don't create backups')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 265: monitor changes: false')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 266: monitor interval: 20 seconds')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 1 tab (config.sk, line 268: default:')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 273: type: CSV')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 275: pattern: .*')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 277: file: ./plugins/Skript/variables.csv')
[11:43:28 ERROR]: [Skript] indentation error: expected 0 tabs, but found 2 tabs (config.sk, line 279: backup interval: 2 hours')
[11:43:28 ERROR]: [Skript] Checking for updates failed. Do you have Internet connection?

W takim razie spróbuj od nowa.

Jeżeli to potrzebne, skopiuj sobie config Skripta z internetu i wklej, a następnie od nowa pouzupełniaj.

6 godzin temu, hyhy123455 napisał:

a bo mam serwer na titanaxe i  czy mysql moze byc innego servera?

Może być gdziekolwiek chcesz. Ważne jedynie, aby było możliwe połączenie z tą bazą danych.

Odnośnik do komentarza
https://skript.pl/temat/46446-po%C5%82%C4%85czenie-skryptu-z-mysql/#findComment-292568
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...