Problem to Create or edit section


Hi can someone please help, I have problem when I want to create section under Journall settings

It shows error “Failed Ajax request or invalid JSON returned”

I looked in the logs:
Error 500 GET /OJS/index.php/BHF/$$$call$$$/grid/settings/sections/section-grid/add-section?gridId=grid-settings-sections-sectiongrid&_=1546109407674 HTTP/1.0 ! Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 421 Apache access
2018-12-29 19:52:06 Error AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught exception ‘PDOException’ with message ‘SQLSTATE[HY000] [2005] Unknown MySQL server host ‘localhost:3306’ (2)’ in /var/www/vhosts/\nStack trace:\n#0 /var/www/vhosts/ PDO->__construct(‘mysql:host=loca…’, ‘ojs’, ‘Nautilus1982$’, Array)\n#1 /var/www/vhosts/ Illuminate\Database\Connectors\Connector->createConnection(‘mysql:host=loca…’, Array, Array)\n#2 /var/www/vhosts/ Illuminate\Database\Connectors\MySqlConnector->connect(Array)\n#3 /var/www/vhosts/…\n’, referer: Apache error


I solved problem, I edited config file, removed port from localhost