Diskuse

Téma: migrace systému

Prosím o pomoc!
Při pokusu migrovat:
Parse error: syntax error, unexpected '.', expecting ',' or ';' in /www/psad.cz/psad.cz/migration/index.php on line 15

a po opětovném nahrání zálohy:
Forbidden
You don't have permission to access this resource.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
postZaslat odpověď
nepodařilo se připojit k databázi, chyba: Access denied for user 'Dalibor'@'localhost' (using password: YES)
Je potřeba vyplnit správné přihlašovací údaje k databázi, podívej se do původního souboru config.php
Tam jsem se díval a jedině co jsem měl špatně byl prefix. Byl tam předvyplněný sunlight a měl tam být gigaserver. a znovu to píše:
Chyba
Kuria\Error\Exception\ErrorException: mysqli_set_charset(): Error executing query in /www/psad.cz/psad.cz/system/class/Database/Database.php:47
Stack trace:
#0 [internal function]: Kuria\Error\ErrorHandler->onError()
#1 /www/psad.cz/psad.cz/system/class/Database/Database.php(47): mysqli_set_charset()
#2 /www/psad.cz/psad.cz/migration/index.php(559): Sunlight\Database\Database::connect()
#3 /www/psad.cz/psad.cz/migration/index.php(448): Sunlight\Migrator\ConfigurationStep->doSubmit()
#4 /www/psad.cz/psad.cz/migration/index.php(267): Sunlight\Migrator\Step->handleSubmit()
#5 /www/psad.cz/psad.cz/migration/index.php(876): Sunlight\Migrator\StepRunner->run()
#6 {main}
Takže to bude asi tou starou verzí Mysql serveru, protože SL 8 potřebuje Mysql 5.6 a novější - viz. systémové požadavky
nu dobráááá, ale jak tu verzi změnit?
to se mění na gigaserveru?
asi jo...
https://ctrlv.cz/IVZ7
mám vyšší verzi PHP, MySQL a migrace začíná tímto oznámením a za ní spousta dalších řádků. Už opravdu nevím, co mám ještě dělat.
mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
mám vyšší verzi PHP, MySQL a migrace začíná tímto oznámením a za ní spousta dalších řádků. Už opravdu nevím, co mám ještě dělat.
mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near


Ahoj Dalibore, Udělej prosím další screen+vypiš verze php a mysql ;) a právě i s těmi hláškami, ta jedna věta nám moc neřekne ;)
Jinak, změny vždy dělej vždy mimo hlavní web (třeba na subdoméně) a nasazuj až po ověření, že vše funguje ;) Vyhneš se tak nefunkčnosti webu ;)
MySQL 5.6 PHP 7.3 a obrázek neumím poslat. Prosím o porozumění, už je mi 75 roků a ten mozek je pomalejší.
tady jsou chybové hlášky:
Chyba
mysqli_sql_exception: Table 'gigaserver_article' already exists in /www/psad.cz/psad.cz/system/class/Database/Database.php:103
Stack trace:
#0 /www/psad.cz/psad.cz/system/class/Database/Database.php(103): mysqli->query()
#1 /www/psad.cz/psad.cz/migration/class/CustomDatabaseLoader.php(22): Sunlight\Database\Database::query()
#2 /www/psad.cz/psad.cz/system/class/Database/SqlReader.php(98): Sunlight\Migrator\CustomDatabaseLoader::Sunlight\Migrator\{closure}()
#3 /www/psad.cz/psad.cz/system/class/Database/SqlReader.php(186): Sunlight\Database\SqlReader->Sunlight\Database\{closure}()
#4 /www/psad.cz/psad.cz/migration/class/CustomDatabaseLoader.php(26): Sunlight\Database\SqlReader->read()
#5 /www/psad.cz/psad.cz/migration/class/PatchInstaller.php(110): Sunlight\Migrator\CustomDatabaseLoader::load()
#6 /www/psad.cz/psad.cz/migration/class/MigrationRunner.php(40): Sunlight\Migrator\PatchInstaller->loadSqlDump()
#7 /www/psad.cz/psad.cz/migration/class/PatchInstaller.php(34): Sunlight\Migrator\MigrationRunner->doInstall()
#8 /www/psad.cz/psad.cz/migration/index.php(708): Sunlight\Migrator\PatchInstaller->install()
#9 /www/psad.cz/psad.cz/migration/index.php(448): Sunlight\Migrator\MigrationDatabaseStep->doSubmit()
#10 /www/psad.cz/psad.cz/migration/index.php(267): Sunlight\Migrator\Step->handleSubmit()
#11 /www/psad.cz/psad.cz/migration/index.php(876): Sunlight\Migrator\StepRunner->run()
#12 {main}

Next Sunlight\Database\DatabaseException: Table 'gigaserver_article' already exists

SQL: RENAME TABLE `gigaserver-articles` TO `gigaserver_article` in /www/psad.cz/psad.cz/system/class/Database/Database.php:109
Stack trace:
#0 /www/psad.cz/psad.cz/migration/class/CustomDatabaseLoader.php(22): Sunlight\Database\Database::query()
#1 /www/psad.cz/psad.cz/system/class/Database/SqlReader.php(98): Sunlight\Migrator\CustomDatabaseLoader::Sunlight\Migrator\{closure}()
#2 /www/psad.cz/psad.cz/system/class/Database/SqlReader.php(186): Sunlight\Database\SqlReader->Sunlight\Database\{closure}()
#3 /www/psad.cz/psad.cz/migration/class/CustomDatabaseLoader.php(26): Sunlight\Database\SqlReader->read()
#4 /www/psad.cz/psad.cz/migration/class/PatchInstaller.php(110): Sunlight\Migrator\CustomDatabaseLoader::load()
#5 /www/psad.cz/psad.cz/migration/class/MigrationRunner.php(40): Sunlight\Migrator\PatchInstaller->loadSqlDump()
#6 /www/psad.cz/psad.cz/migration/class/PatchInstaller.php(34): Sunlight\Migrator\MigrationRunner->doInstall()
#7 /www/psad.cz/psad.cz/migration/index.php(708): Sunlight\Migrator\PatchInstaller->install()
#8 /www/psad.cz/psad.cz/migration/index.php(448): Sunlight\Migrator\MigrationDatabaseStep->doSubmit()
#9 /www/psad.cz/psad.cz/migration/index.php(267): Sunlight\Migrator\Step->handleSubmit()
#10 /www/psad.cz/psad.cz/migration/index.php(876): Sunlight\Migrator\StepRunner->run()
#11 {main}
aktuální verze MySQL je: Server version: 5.6.51-91.0.
aktuální verze PHP je : PHP 7.4.33
a migrace pořád nejde