I am trying to create a federated table on my local machine which suppose to connect to my another machine which also in my local network. I have enabled federated engine on both machines and is shown when I run this command show engines.
Below is my syntax.
CREATE TABLE fedTransfer( `fedID` INT NOT NULL AUTO_INCREMENT, `transferID` INT, `outletFromID` INT, `employeeToID` INT, `transferStatus` ENUM('y'), `transferToDate` DATE, `transferToTime` TIME, PRIMARY KEY (`fedID`) )
ENGINE=FEDERATED;
COMMENT='mysql://root:[email protected]/mptest/fedTransfer';
Below is the error I get when I run this on sqlyog.
Error Code: 1
Can't create/write to file 'server name: '' doesn't exist!' (Errcode: 1408685900)
Execution Time : 0 sec
Transfer Time : 0 sec
Total Time : 0.047 sec
---------------------------------------------------
Query: COMMENT='mysql://root:[email protected]/mptest/fedTransfer'
Error Code: 1064
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 'COMMENT='mysql://root:[email protected]/mptest/fedTransfer'' at line 1
Execution Time : 0 sec
Transfer Time : 0 sec
Total Time : 0 sec
---------------------------------------------------