I am beginner for perl developer. i am connecting mysql by perl script . but when i try hit some queries. all queries are running successfully except one. and where i use that query on mysql console it runs successfully.
#!/usr/bin/perl -w
use DBI;
$dbh1 = DBI->connect('dbi:mysql:testing;host=localhost', 'root', '93C0o35A9/692fz') or die "Connection Error: $DBI::errstr\n";
$dbh1->do('stop slave');
$dbh1->do('CHANGE MASTER TO MASTER_HOST=54.254.154.33, MASTER_USER=replica, MASTER_PASSWORD=aims145, MASTER_LOG_FILE=mysql-bin99, MASTER_LOG_POS=107');
$dbh1->do('start slave');
first and third queries are running fine while second one is showing syntax error as follows
./newmysql.pl
DBD::mysql::db do failed: 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 '54.183.14.179, MASTER_USER=replica, MASTER_PASSWORD=aims145, MASTER_LOG_FILE=mys' at line 1 at ./newmysql.pl line 8.
Please help me here where i am wrong.