Mayur Sojitra Mayur Sojitra - 6 months ago 14
SQL Question

Connect Mysql server using laravel

I want to handle multiple VPS using SSH connection in laravel
I installed mysql successfully on 3 test VPS but now I want to create database in that servers so help me out

Thanks in advance

enter image description here

Answer
try
{
    SSH::run($command, function($line)
    {
        echo $line.PHP_EOL;
    });
}
catch(\RunTimeException $e)
{
    return view('dashboard.add_server');
}

I hope it will work for you

Comments