Error report:

Something went wrong: Error: Call to a member function execute() on boolean in file /storage/ssd4/907/1905907/public_html/vendor/illuminate/database/Connectors/MySqlConnector.php on line 57 Stack trace: 
1. Error->() /storage/ssd4/907/1905907/public_html/vendor/illuminate/database/Connectors/MySqlConnector.php:57 
2. Illuminate\Database\Connectors\MySqlConnector->connect() /storage/ssd4/907/1905907/public_html/vendor/illuminate/database/Connectors/ConnectionFactory.php:60 
3. Illuminate\Database\Connectors\ConnectionFactory->createSingleConnection() /storage/ssd4/907/1905907/public_html/vendor/illuminate/database/Connectors/ConnectionFactory.php:49 
4. Illuminate\Database\Connectors\ConnectionFactory->make() /storage/ssd4/907/1905907/public_html/vendor/flarum/core/src/Database/DatabaseServiceProvider.php:29 
5. Flarum\Database\DatabaseServiceProvider->Flarum\Database\{closure}() /storage/ssd4/907/1905907/public_html/vendor/illuminate/container/Container.php:738 
6. Illuminate\Container\Container->build() /storage/ssd4/907/1905907/public_html/vendor/illuminate/container/Container.php:631 
7. Illuminate\Container\Container->make() /storage/ssd4/907/1905907/public_html/vendor/flarum/core/src/Foundation/Application.php:513 
8. Flarum\Foundation\Application->make() /storage/ssd4/907/1905907/public_html/vendor/flarum/core/src/Install/Console/InstallCommand.php:219 
9. Flarum\Install\Console\InstallCommand->storeConfiguration() /storage/ssd4/907/1905907/public_html/vendor/flarum/core/src/Install/Console/InstallCommand.php:164 
10. Flarum\Install\Console\InstallCommand->install() /storage/ssd4/907/1905907/public_html/vendor/flarum/core/src/Install/Console/InstallCommand.php:95 
11. Flarum\Install\Console\InstallCommand->fire() /storage/ssd4/907/1905907/public_html/vendor/flarum/core/src/Console/Command/AbstractCommand.php:37 
12. Flarum\Console\Command\AbstractCommand->execute() /storage/ssd4/907/1905907/public_html/vendor/symfony/console/Command/Command.php:266 
13. Symfony\Component\Console\Command\Command->run() /storage/ssd4/907/1905907/public_html/vendor/flarum/core/src/Install/Controller/InstallController.php:84 
14. Flarum\Install\Controller\InstallController->handle() /storage/ssd4/907/1905907/public_html/vendor/flarum/core/src/Http/Handler/ControllerRouteHandler.php:52 
15. Flarum\Http\Handler\ControllerRouteHandler->__invoke() /storage/ssd4/907/1905907/public_html/vendor/flarum/core/src/Http/Middleware/DispatchRoute.php:71 
16. Flarum\Http\Middleware\DispatchRoute->__invoke() /storage/ssd4/907/1905907/public_html/vendor/zendframework/zend-stratigility/src/Dispatch.php:224 
17. Zend\Stratigility\Dispatch->dispatchCallableMiddleware() /storage/ssd4/907/1905907/public_html/vendor/zendframework/zend-stratigility/src/Dispatch.php:88 
18. Zend\Stratigility\Dispatch->__invoke() /storage/ssd4/907/1905907/public_html/vendor/zendframework/zend-stratigility/src/Next.php:160 
19. Zend\Stratigility\Next->__invoke() /storage/ssd4/907/1905907/public_html/vendor/flarum/core/src/Http/Middleware/StartSession.php:33 
20. Flarum\Http\Middleware\StartSession->__invoke() /storage/ssd4/907/1905907/public_html/vendor/zendframework/zend-stratigility/src/Dispatch.php:224 
21. Zend\Stratigility\Dispatch->dispatchCallableMiddleware() /storage/ssd4/907/1905907/public_html/vendor/zendframework/zend-stratigility/src/Dispatch.php:88 
22. Zend\Stratigility\Dispatch->__invoke() /storage/ssd4/907/1905907/public_html/vendor/zendframework/zend-stratigility/src/Next.php:160 
23. Zend\Stratigility\Next->__invoke() /storage/ssd4/907/1905907/public_html/vendor/zendframework/zend-stratigility/src/MiddlewarePipe.php:103 
24. Zend\Stratigility\MiddlewarePipe->__invoke() /storage/ssd4/907/1905907/public_html/vendor/flarum/core/src/Http/AbstractServer.php:53 
25. Flarum\Http\AbstractServer->__invoke() /storage/ssd4/907/1905907/public_html/vendor/zendframework/zend-diactoros/src/Server.php:166 
26. Zend\Diactoros\Server->listen() /storage/ssd4/907/1905907/public_html/vendor/flarum/core/src/Http/AbstractServer.php:34 
27. Flarum\Http\AbstractServer->listen() /storage/ssd4/907/1905907/public_html/index.php:16

It says It has something to do with this line at the first line
$connection->prepare("set session sql_mode=''")->execute();
I removed the line and it fixed it, but I cannot do anything, help!!!

    What's your system config ? Did Flarum run before or it broken after install ? Do you have extensions installed ?

    One of my guess (but it's hard to tell without the details above) would be that php-mysql module is not enabled.

      17 days later

      inparsian what contain of your .htaccess? because i get same problem after upload my flarum that manage in localhost then upload to hosting. I have already to configure database and base url but problem still exist

        bundet what are your DB settings? Leave out the password. Most likely the cause is there.

          luceos I can not leave the password field because the hosting service requires it to be filled.
          and this effect if I leave the password

            inparsian if I do a same thing, like this

            // If the "strict" option has been configured for the connection we will setup
                    // strict mode for this session. Strict mode enforces some extra rules when
                    // using the MySQL database system and is a quicker way to enforce them.
                    if (isset($config['strict'])) {
                        if ($config['strict']) {
                            $connection->prepare("set session sql_mode='STRICT_ALL_TABLES'")->execute();
                        } else {
                            //$connection->prepare("set session sql_mode=''")->execute();
                        }
                    }

            and i get this error

            Haloooo every body here, hahahahah Yeeaahhh Problem solved, ?

            I am very happy after several hours trying to solve my own problem, it is very simple, just delete the parameters in config.php

            I will make a short tutorial in this forum with the post title "How to Upload Flarum to Shared Hosting After Managed in Localhost"

            <?php return array (
              'debug' => true,
              'database' => 
              array (
                'driver' => 'mysql',
                'host' => 'localhost',
                'database' => 'yourdb_inhost',
                'username' => 'yourun_inhost',
                'password' => 'yourpwd_inhost',
                'charset' => 'utf8mb4',
                'collation' => 'utf8mb4_unicode_ci',
                'prefix' => '',
                'strict' => false, //<---JUST REMOVE THIS PARAMETER
              ),
              'url' => 'https://fgate.000webhostapp.com/',
              'paths' => 
              array (
                'api' => 'api',
                'admin' => 'admin',
              ),
            );

            see the demo https://fgate.000webhostapp.com/
            I've verified this tip by performed it to different host, see the demo http://forum.gatewan.com

            bundet I meant leave the password out when posting them here. Great work on solving this by yourself!