Thomas Henson

  • Data Engineering Courses
    • Installing and Configuring Splunk
    • Implementing Neural Networks with TFLearn
    • Hortonworks Getting Started
    • Analyzing Machine Data with Splunk
    • Pig Latin Getting Started Course
    • HDFS Getting Started Course
    • Enterprise Skills in Hortonworks Data Platform
  • Pig Eval Series
  • About
  • Big Data Big Questions

Reverse Engineering with MySQL Workbench

October 1, 2012 by Thomas Henson 1 Comment

[bra_highlight style=”highlight2″]In this Post we will learn  about reverse engineering with MySQL Workbench on top of an existing MySQL database schema. This is the second part of an ongoing series for using MySQL Workbench to manage databases. Part 1 Setting Up MySQL Workbench [/bra_highlight]

mysql book link

What is database schema

Have you wanted look to see how tables in a database relate to each other or had to update a project with an existing database and no documentation? Well in this second part of our tutorials on MySQL Workbench we are going to create documentation from an existing WordPress database. This documentation will be called an EER (Enhanced Entity Relationship) Diagram but we can just refer to it as our database schema. MySQL Workbench has a wizard that will help us get started with creating this documentation.

Begin Modeling

  1. First we will open up our MySQL Workbench and click on the Create EER Model From Existing Databaseopen eer
  2. We will use the connection we already have stored in MySQL Workbench (Lesson 1)
  3. As we are going through the steps in the Wizard be sure to select only the database we want to Reverse Engineer my example is test
  4. Go through the rest of the Wizard with the default values selected and you should see a screen that looks like this
  5. Now we have to go through and move our tables so we can see them all Select -> Arrange -> Autolayout (pretty awesome isn’t it)
  6. Congratulation we now have an EER Diagram (without relationships we will have to manual add those)

Conclusion

We have just created our own EER for an existing database which counts toward documentation for our project. This process is very simple but powerful tool in MySQL Workbench. Once we set up the EER we can also use it to forward engineer. Try adding a new column or table to the EER then save changes and verify the changes in from the SQL editor window. 


Final Product

dreamhost link

Filed Under: MySQL Tagged With: Database, MySQL, schema, Workbench

Whitehouse Posting on Github

August 28, 2012 by Thomas Henson Leave a Comment

Breaking News

2-3 days ago the Whitehouse expanded its social media network into social coding Github. What does this mean for the political landscape in November? Read on to find out.


About the App

The popular We the People petition at petitions.whitehouse.gov is an cloud version of a paper petition. Users are able to create an account then create a petition for others to sign. It has been a very popular and now the White House has published the code online for others to use under the GNU General Public License. The overall premsie behind the app is a cloud based petition will allow users to get more signatures.


Tech Specs

Drupal 7

PHP 5

Required Mongo DB but they want to move to a MySQL database soon.

Located at https://github.com/whitehouse/petition

 


 

Thoughts

Really wish this was a WordPress plugin, the most popular CMS on the web. The good news is since this is a public repostiroy on Github someone will probally create a WordPress plugin for it. As far as the timing I think it would have been better had it been released this summer.Most political and community awareness pages are already finalized. For example our local election is tomorrow, kind of hard pressed to get this implemented before then but this APP could be helpful for the future.


November Prediction

Someone will create this APP for WordPress. You heard it here first.

 

Filed Under: Article, Development, Video Tagged With: drupal, github, php, social coding, whitehouse

Top 5 ASP.NET Web Resources

August 1, 2012 by Thomas Henson 4 Comments