I have two different sites in my Intranet.. 1st site Database is MYSQL, & second one is in Postgresql. how can I combine both database?
Another possibility is to use fdw (in PostgreSQL 9.1) to comunicate both databases, and an example of this. However, for now, has some limitations.
You simply can't on a database level.
You can however use some language which has drivers for both and 'combine' them on a application level.
Related
I'm not very versed on databases, so thismight sound wrong to some of you: Can I use SQL, MySQL and/or SQLite to read the same database? If so, are there commands or instructions I should keep an eye on to not make a mess on the tables?
Thanks in advance!
sql is a language. sqlite and mysql are database engines.
Both SQLite and MySQL (as far as any SQL engines) allows SQL language to manipulate database content (with some engine specific ).
So you may use SQL to read a MySQL or SQLite database. But be aware that SQL use in each is engine dependent. For instance, in SQLite you may use shell application, c wrapper, ... For MySQL you may use php wrapper, ...
I got indexed a Mysql database using Solr and everything is perfect. Now i got another database which uses exactly the same schema as my first database but with different data in it.
What i want is to use Solr to index also the second database using the same solr schema that i created for my first database since are completely the same!
I read that Solr cores allows you to run multiple instances that use different configuration sets and indexes, but in my case i got the same exactly configuration, the only thing that changes is the database name.
My question is what is the best way two create two Solr instances that use the same configuration?
Cheers
You could use two cores and share a schema. Just read the Wiki. But in practice you might want to keep the flexibility and just copy the schema for a second core.
How about using only one solr instance but have a field in the schema that contains a value which indicates which db/source the record came from.
I've seen few posts here saying I can do hierarchical queries using mysql.
I've not used PostgreSQL, yet. If I change to PostgreSQL, do I have to change a lot of syntax or can I do that hierarchical stuff in MySQL itself?
Hierarchical queries in MySQL
What sender sends is Facebook invite so can I do this in SQL?
MySQL doesn't have recursive queries, databases like PostgreSQL, SQL Server and Oracle do have these types of queries. Very powerful and easy to use, but in MySQL you're on your own.
You could use a work around like a nested set, works in almost any database but is not as fast.
Using C#, is it possible to use OleDbTransaction to execute a insert in two different database vendors, such as Microsoft SQL Server and Oracle?
Is it possible to use OleDbTransaction to save data in two different databases?
No because an OleDbTransaction is tied to a specific OleDbConnection. The only solution is to use TransactionScope (preferred solution) or the EnterpriseServices classes.
I have a PostgreSQL database whose tables are divided amongst a number of schemas. Each schema has a different set of access controls; for example, one schema might be read-only to regular users, while they are allowed to create tables on another. Schemas also act as namespaces, so users don't have to worry about duplicating existing tables when they create new ones.
I want to create a similar setup using MySQL. Does it have an equivalent concept? If not, how can I most closely simulate it? I would prefer not to use multiple databases.
Database should be the closest one.
Prefixing table names is what's done with most MySQL-driven apps.