php - How do I create a Federated Table in Google Cloud SQL -


i have joomla (php) website existing hosted mysql database. have google cloud sql instance statistical data in.

i need query data across both databases , query run on google cloud sql instance.

my research far has lead me belive best way create federated table inside google cloud sql database in attempting not getting results expect (neither getting error?!)

joomla mysql table:

create table test_table (   id int(20) not null auto_increment,   name varchar(32) not null default '',   other int(20) not null default '0',   primary key (id),   index name (name),   index other_key (other) ) engine=myisam default charset=latin1; 

google cloud sql:

create table federated_table (   id int(20) not null auto_increment,   name varchar(32) not null default '',   other int(20) not null default '0',   primary key (id),   index name (name),   index other_key (other) ) engine=federated default charset=latin1 connection='mysql://*uid*:*pwd*@*joomla_server_ip*:3306/*database_name*/test_table'; 

where

*uid*, *pwd*, *joomla_server_ip* , *database_name*  

are valid values.

both statements execute fine no errors, after inserting data *test_table* on joomla unable see data in *federated_table* on google cloud sql.

i have tried federated table creation using both command line tool (windows) , using squirrel sql jdbc client.

because seeing no errors ever i'm not sure if problem @ joomla database end or google cloud sql database end. appreciated. assuming problem connection between 2 databases, open trying other theroies may throw @ me.

edit:

i'm using different client connect (mysql workbench) , reports error when trying same thing

1286 unknown storage engine 'federated' 1266 using storage engine innodb table 'federated_table' 

shortly after asking question google added mysql wire protocol google cloud sql.

http://googlecloudplatform.blogspot.co.uk/2013/10/google-cloud-sql-now-accessible-from-any-application-anywhere.html

it possible create federated tables in normal way.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -