Symfony - How to load initial data to database [closed] - mysql

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I'm using Symfony 2.7 and Mysql
I need to load some real data to database like needed data for countries and cities tables and their relations. What is the right way to do such tasks in Symfony?

For generating test data, use data fixtures. For generating data required in productions, I suggest to use migrations.

Related

How can we use 3 different databases in Laravel? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
How can we establish multiple databases connection in Laravel. I have to save data in 3 different tables in laravel. I have to connect one laravel application with 3 databases. Is it any way to do this?
Please go through this link how to set multiple databases in laravel

Do I need MySQL even though there is no user registration on my website? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I have made a website which does some calculations, so there is no user registration. Just a website where people can do their calculations and leave. However, do I need MySQL as part of the server? I am a bit confused on this.
MySQL (and other database engines like PostgresQL, MongoDB, and even Google's BigTable) are used for storing data outside of user sessions. If you have no need to persist data, then you have no need for a database.

Can I use Redis instead of Mysql in Magento? How? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to use Redis in Magento instead of mysql? I do like how to done it?
Good day.
Redis is not a replacement MySQL.
If you you want to use NoSQL with Magento, you must choose DB with guarantee the preservation to Storage
For Example - MongoDB

Using ID number in accessing a page [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I would like to inquire for some ideas about my questions.
I would like to create a project using HTML by which I'd use the ID number of a student, and allow them to check their grades. The first step they'll do is to type their ID number in a specified textbox area and upon entering it, they'll see their grades on the screen.
Use php and a database. Not HTML. You can append their details to the HTML but the underlying tech will be php and SQL

Configuration parameters in file or DB? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
What will be best practice for this?
I'd say it depends a lot on what you are going to use it for, how often it's going to be changed, etc. For the most part I keep configuration parameters that are unlikely to change in a file (ie: db connection parameters themselves)