Tool To Normalize A Database? [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have a huge table with a lot of records that I want to split into smaller tables to make it normalized. I already have the model for the normalized table. Now, I want to take all the records from the huge table and split them up into the several tables that'll normalize the data.
Is there a tool to make this process easy? I'm planning to write a script in PHP to loop through the records in the huge table and and split them up into the other tables.

Some ETL tools might be clever enough to allow you to split data into multiple destination tables, but I don't know of one offhand. You can try Kettle.
In my experience, these kinds of tasks are often so custom that it's necessary to write a one-off script.

NORMA for conceptual database design. One side-effect is that it produces the schema for a properly normalized database.
But the best solution is that you should be able to fully understand how to normalize forms, for how long you will be dependent on any tools to do this for you? I would suggest you to study a bit about it so that you could come up with the best solution yourself. As a developer, you will face this every now and then, and what about an interview, let's suppose where you are asked about it? And as Mitch Wheat said, normalization should not require a tool :)
Here are some more resources to get you started:
http://dev.mysql.com/tech-resources/articles/intro-to-normalization.html
Source: MySQL website (Official)

Related

MySQL backend, and PHP front search algorithm [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have reasearched a couple of options for MySQL & php search on the web and StackOverflow, but have not found something that really fits my scenario. Let me explain.
My scenario:
I have a table (TABLE1) in MySQL that has indexed terms (e.g. McDonalds, Microsoft, etc). This table has over 3000000 records.
I then have generic string that the user can enter - e.g. "There is a company called MCDonalds in my neighbourhood".
What i would like to look for occurances in the user entered string for any terms in my mysql table. I have implemented this currently by traversing each of the 3 million records in TABLE1 to see if it is in the user entered string (entered by user through a PHP page).
3 approach works 'well' - but of course it does not scale and the performance sucks :)
Any suggestion or pointers to algorithms to solve such a problem.. in a scalable and algorithmically sound way?
Thanks,
Joe
You should try MySQL's FULLTEXT search capability. Try something like this:
SELECT whatever, whatever
FROM TABLE1
WHERE MATCH(terms_column) AGAINST('There is a company called McDonalds in my neighbourhood')
You'll probably get lots of false positive matches, but this is an efficient way to at least narrow down the search.
It worked for me on a list of US cities matching against phrases like "Im going back to New Orleans to wear the ball and chain" and "Chicago, New York, Detroit and its all on the same street.".
You will need a FULLTEXT index on the your terms_column. And your table may, depending on the version of MySQL you're using, need to be in the MyISAM storage method.

Suitable Backend language social networking Node.js/mongoDb or PHP/Mysql [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
We are in the initial phases of developing one social networking project and off course have a tough time deciding between Node.js/mongoDb or PHP/Mysql for our backend.
I have read a tons about the advantages/disadvantages of both of them. But i am still unsure of what to use. I am a bit inclined towards node.js combination.
here are my requirements...
The web application would be a highly dynamic with real time responses with lot of writing/reading databases (small chunk of data every time). Its like any other social network like twitter/facebook/quora where user can post comments, likes, follow and typical features of such kind of sites.
Also, as such we don't have high calculation part in backend. What we have is one time page rendering by fetching the content of database and rendering to user and then doing real time activities.
I have learned that Node.js is event driven so seems to be a better fit for that. Also we don't have as such high processing driven modules in backend. Can you please guide me if this would be a good combination for such types of websites. Please excuse me for my english or if i posted it at wrong place.
Thank you
From my point ov view
**highly dynamic with real time responses**
and
**one time page rendering**
point you in the direction of NodeJS for the webserver
Regarding Mongo vs MySQL it is all abount what you need in terms of speed vs integrity, but, for lots and lots of small chunks of data I'd use Mongo.

Free and secure PHP user management system [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm looking for an secure php usermanagement system. It should be just the logics, so no markup or too much content (like messages etc.). I know I could just build it myself, but I doubt if it will be the most effecient usermanangement system.
The system should be at least
able to verify if the user is human
very secure (security against hacks, but also protect the users from their stupidity)
effecient (number of users will start at 1k and from then grow exponentially to around 100k)
capable of handling roles and capabilities
You guys got any recommandations?
You can use any of the following scripts:
http://sourceforge.net/projects/phploginsystemw/ (Login with 5 levels of security)
http://usercake.com/
http://www.downscripts.com/user-management-script_php-script.html
http://userpie.com/
http://gscripts.net/free-php-scripts/Login_Management/PHP_Login_Script/details.html
http://www.webresourcesdepot.com/free-php-user-management-script-log-me-in/
You should probably take a look at this:
http://www.hotscripts.com/category/scripts/php/scripts-programs/user-management/
I have use this before:
http://sourceforge.net/projects/phploginsystemw/
worked for me.
Take a look at drupal. It is a framework with modules for this stuff. You will be able to get away with very minimal coding.

Is there a tool that can transform a static SQL string into valid Drupal db query code? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am wondering if there is some tool available, that will take as input a SQL command, and as output will return valid Drupal code that can be used in the Drupal Api?
EDIT
The idea is I have large, 25 lines of SQL commands ready to be used on the database. And they are somehow complicated, so I am wondering how could I rewrite them with a tool to use the object members on the db_query to do the same stuff as my large SQL command line.
i assume there's no such tools.
Just read:
sql coding conventions
http://drupal.org/writing-secure-code
This might save some time, depending on what you are trying to do with SQL.
http://drupal.org/project/views
Plain 'ol non-Drupal SQL will still work in db_query ... it's just not a best practice since the database API can't retool the SQL to work in any supported environment, and doesn't take advantage of Drupal's SQL injection protections, among other things.
But it still works.
If you're going to use the SQL in a known environment (e.g. a system where these commands are already in use), I'd say just use them as they are for now and gradually convert them over to Drupal standards as new code is developed.
(Of course, if this code is meant to be distributed to other environments, you'll want to put in sweat equity and convert the strings, or write a tool to do so)

I need a very simple PHP database front-end admin panel; a simple records editor for a specified table [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am looking to add some dynamics to our corporate website. This is a secondary role so I'd rather not be spending a ton of time on it.
At this point, all I need is a simple PHP script where a non-technical user can pull up and manage the records in a MySQL table. There's only one table of data to be managed; it's just that it will be accessed and updated quite frequently.
I recall that Grails' default scaffolding feature has precisely this: list of entries with the ability to add, edit and delete, with no nonsense.
What would be the best tool to use for this? I would rather not be writing it from scratch, as this will take me quite some time.
It seems like the kind of thing that ought to exist somewhere.
Thanks!
Have a look at Xataface. It's essentially a CRUD interface to your db. It's straightforward to install, open source and can be styled to match your corporate intranet.
for the db script, I recommend phpMyAdmin. It requires sql knowledge to do complex things, but simple operations are made friendly.
If you are looking for similar functionality of Rails, there is CakePHP, which can automatically generate code for scaffolded views to add, edit, view and delete records.
You can also check out https://github.com/laravella/crud
http://laravella.github.io/docs/
It is built on laravel, easy to install, endless possibilities.

Categories