Hi When you use mysql client you have to give the host name for -h option not the db URL. So try
mysql -u dbuser -h mysql- <http://mysql-dev-01.cloud.wso2.com:3306/db1_xxxxx>dev <http://mysql-dev-01.cloud.wso2.com:3306/db1_xxxxx>-01. <http://mysql-dev-01.cloud.wso2.com:3306/db1_xxxxx>cloud.wso2 <http://mysql-dev-01.cloud.wso2.com:3306/db1_xxxxx>.com <http://mysql-dev-01.cloud.wso2.com:3306/db1_xxxxx> -p On Jul 9, 2014 10:56 PM, "Nilashan Namasivayam" <n.nil...@gmail.com> wrote: > Hi, > > I'm trying to add some data to the database in App Cloud. > > The database url like this: > jdbc:mysql://mysql-dev-01.cloud.wso2.com:3306/db1_xxxxx > > > and I have tried to connect via MySQL client like this > mysql -u dbuser -h jdbc:mysql:// > mysql-dev-01.cloud.wso2.com:3306/db1_xxxxx -p > > After trying the above code, I get this error in console > ERROR 2005 (HY000): Unknown MySQL server host 'jdbc:mysql:// > mysql-dev-01.cloud.wso2.com:3306/db1_xxxxx' (2) > > What can be the problem? > > I'm following this documentation: > > http://docs.wso2.com/display/AppCloud/Add+Data+to+my+Database+or+Connect+to+an+External+Database > > Do we need any additional configuration in App Cloud than mentioned in the > above link? > > > Regards, > Nilashan > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev