How to add new products through magento database? - mysql

I am trying to bring products from mysql database to magento database. Could you please help which tables i have to insert the data?

This is not so easy. You should build a migration script and use magento API to do that. There’s a lot of relations between tables in database and without good understanding what happened there I really do not recommend your approach.

Related

Do I need to create DB migration, if I have a designed DB in MySQL?

I designed a database in MYSQL. Now I want to connect that with my Laravel application. But after researching, I understand that I need to migrate the database into Laravel by creating migration tables. But doing the same thing that I did in MySQL is tedious. I think there is another way to do the stuff. After searching I got this article from stackoverflow, but this is related to yii framework. I think someone knows here the solution of my problem.
I don't see a problem here, you can just connect Laravel to your DB (by editing your .env file) without any problems, migration files are just an easier way to design and implement your tables (also altering your tables' scheme on production is a very useful usage for migrations), but with that being done then no further actions are required, and you are good to go!
it's pretty obvious, you can update the database setting in the .env file and use DB::table('your_table_name') and get whatever query you want.
The upside of using migrations is that the exact same database can be created on different systems (ex: co-workers or acceptance/production servers).
Laravel migrations have an up and a down function so you can rollback to a specific version if something went wrong, very usefull when publishing your code.
That being said, co-workers could also review the database changes and for example hint at using more indexes and foreign keys.
As the other comments said, it's not a requirement you use migrations but it has considerable advantages versus creating and updating the database manually.

Symfony query with multiple databases

This site has been great for a Symfony newbie such as myself and hopefully this will be the same experience. I have searched a lot for this question so maybe I am not using the right terminology. I have read about using services but none seem to give an example of what I need using multiple databases with different tables. So here goes, first off I am at the discretion of the current database design and I can't merge databases or recreate them, I have to use them as is. Here is the mysql query I want to use:
select name, title, rank from db1.tbl1,
db2.tbl1,db2.tbl2
where db2.tbl1.id=db2.tbl.id
and db1.tbl1.person_id=db2.tbl2.person_id;
I have created connections to the db in parameters.yml and config.yml. I was thinking about creating a repository for one of the entities and then having it innerjoin the other tables from the same database but couldn't find any examples. I want to do this using best practice. I am all ears.
I should also mention all the databases are managed by the same server.
You can't use multiple databases in a single query because for multiple databases to work, you need a manager for each.
I can't think of a solution using arrays or objects that is not resource intensive. Because you need to load at least one entire table.

Importing products straight to Magento's mysql database

I have my own database with product information. I want to upload these products straight to Magento's mySQL database. I tried investigating database structure and it's extremely confusing. So far what I've figured out is that they store product information across many different and therefore understanding every table and how it all comes together seems impossible. Is there any way to import products to magento without making direct sql queries to many different tables ? Or perhaps there's some other way to import products to magento programatically ?
Magmi is based on importing product, categories through direct SQL queries. You should have a look there. More here. Or you can google it to find more about Magmi Project

Anyone know an easy way to dump data from MongoDB to MySQL?

We have been using MongoDB as our main datastore for a little while but I've been finding it difficult to please our business users with it's lack of relations.
What I'm hoping to do is dump data from Mongo to MySQL to allow these heavy MySQL users the ability to query in a format they are used to.
Does anyone know an elegant way to do this?
I'm hoping to avoid some heavy scripting to get there...
Read all the data ! Write all the data !
Use your language specific driver for MongoDb and Mysql to fetch all the data from MongoDb and insert into Mysql as per your table schemas. You will need some coding for sure.
Update: You can give a try to this tool :
http://grahamis.com/blog/2010/06/10/squealer-intro/
https://github.com/delitescere/squealer
Strange question. Do you except arbitrary documents would fit into a RDBMS schema?
You must be dreaming. Try the CSV export...everything else is up to you and your coding skills.
The answer is Kettle.
Thanks to Adam our engineer he found the solution.
http://kettle.pentaho.com/
They have added a tool to connect to Mongo.
You can then migrate the data to MySQL.

migrating a table full with data from MSSQL to MYSQL

I'm importing data from SQL Server to mysql.
Currently I need to migrate a single a table with a simple data structure (no constraints, only values), to mysql. The table is 1.6 milion rows
What is a good way to accomplish this?
(I saw other related topics here, but don't see something that I can work with)
The best approach is to write a program using your favorite language to migrate the data. If you are looking for a tool to accomplish this, have a look at MySQL Migration Toolkit. It migrates data from various data sources to MySQL database.
MySQL Migration Toolkit.
You could use SSIS, it can connect to ODBC data destinations and might be quicker to implement than writing an application from scratch.