<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; db</title> <atom:link href="http://www.ghacks.net/tag/db/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Complete database administration package MySQL Workbench</title><link>http://www.ghacks.net/2009/12/25/complete-database-administration-package-mysql-workbench/</link> <comments>http://www.ghacks.net/2009/12/25/complete-database-administration-package-mysql-workbench/#comments</comments> <pubDate>Thu, 24 Dec 2009 22:03:02 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[database administration]]></category> <category><![CDATA[db]]></category> <category><![CDATA[dba]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[mysql database]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=21783</guid> <description><![CDATA[Recently I covered the MySQL GUI tool MySQL Administrator (see the article &#8220;Create a database with MySQL Administrator&#8220;). However, this tool was just given the official EOL (End of Life) announcement by the MySQL dev team. Although this is sad news for a tool that had recently become my standard for working with databases, this [...]]]></description> <content:encoded><![CDATA[<p>Recently I covered the MySQL GUI tool MySQL Administrator (see the article &#8220;<a
title="Create a database with MySQL Administrator" href="http://www.ghacks.net/2009/12/09/creating-a-database-with-mysql-administrator/" target="_blank">Create a database with MySQL Administrator</a>&#8220;). However, this tool was just given the official EOL (End of Life) announcement by the MySQL dev team. Although this is sad news for a tool that had recently become my standard for working with databases, this death knoll has lead me to another, even better, tool <a
title="MySQL Workbench" href="http://wb.mysql.com/" target="_blank">MySQL Workbench</a>.</p><p>MySQL Workbench replaces all of the MySQL GUI tools, adds numerous power-user features, and wraps them up into a tool that any DBA (data base administrator) will be drooling over. This tool is not just about power, it&#8217;s also about being one of the best cross-platform, visual database design tools around. And even in beta release, the MySQL Workbench shows it might well succeed in that quest.</p><p>In this article I will introduce you to this tool. You will see how MySQL Workbench is install as well as how to connect to a server and create a database.</p><p><span
id="more-21783"></span><strong>Installation</strong></p><p>You will not find the beta version of MySQL Workbench in your repositories. Instead you will have to download the necessary installation package from the <a
title="Download" href="http://dev.mysql.com/downloads/workbench/" target="_blank">Workbench download page</a>. From that page you can select from the following platforms:</p><ul><li>Windows</li><li>Fedora</li><li>Ubuntu</li><li>Mac OSX</li></ul><p>You can also download the source code and install from that method. Download your preferred file and install the package. Be careful. If you are installing on Ubuntu 9.10 you will want to click on the Development Releases tab and download the latest version. I installed version 5.2.11 and had great success on 9.10. The stable release, however, wasn&#8217;t so successful (it would install but couldn&#8217;t connect to the necessary mysqlclient libraries).  You might also find that, to install the development release on Ubuntu 9.10, you will have to also install python-paramiko and python-pexpect. Both of these can be found within Synaptic.</p><p><strong>Starting the workbench</strong></p><p><strong> </strong></p><div
id="attachment_21784" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/12/mysql_workbench_main.png"><img
class="size-medium wp-image-21784 " src="http://www.ghacks.net/wp-content/uploads/2009/12/mysql_workbench_main-500x362.png" alt="" width="300" height="217" /></a><p
class="wp-caption-text">Figure 1</p></div><p>Once installed, you will find the MySQL Workbench located  (at least in GNOME) in the Programming sub-menu of the Applications menu.  When you first start the workbench you will see the very well laid out home screen (see Figure 1). From the first look it is obvious we are dealing with a serious dba tool.</p><p>The first thing that you must do is open a connection to your database server. For simplicity&#8217;s sake I am going to demonstrate connecting to localhost.</p><div
id="attachment_21785" class="wp-caption alignright" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/12/mysql_workbench_connect.png"><img
class="size-medium wp-image-21785 " src="http://www.ghacks.net/wp-content/uploads/2009/12/mysql_workbench_connect-500x327.png" alt="" width="300" height="196" /></a><p
class="wp-caption-text">Figure 2</p></div><p>To do this click the New Connection link, which will bring up a the DB Connections Manager (see Figure 2). Since this will be a localhost connection, the only thing you should have to edit is your root user password. Remember, this is the MySQL administrator password (not your system admin password). Before you click OK it is best to click the Test Connection button. This way you will know, immediately, if your connection is successful.  When you see that it is successful, click the OK button to make the connection and dismiss the window.</p><div
id="attachment_21786" class="wp-caption alignleft" style="width: 310px"><a
href="http://www.ghacks.net/wp-content/uploads/2009/12/mysql_workbench_edit.png"><img
class="size-medium wp-image-21786 " src="http://www.ghacks.net/wp-content/uploads/2009/12/mysql_workbench_edit-500x362.png" alt="" width="300" height="217" /></a><p
class="wp-caption-text">Figure 3</p></div><p>The next step is to double-click on the new connection you just made (listed  in the Open Connection&#8230; window in the main window). When you double click the target connection the SQL Editor will open in a new tab (see Figure 3). When this tab opens you will see all of the current databases listed in the tabs in the lower pane. If you click on a database (Schema) you will see all tables included on that database.</p><p>To create a new database all you have to do is click on the &#8220;+&#8221; symble in the upper right corner of the lower left pane. When you click this a new window will open where you have to enter the following information:</p><ul><li>Name: Give the db a name.</li><li>Default Collation: What is the default character set used. For example: A Drupal database uses utf8_general_ci.</li><li>Comments: (Optional) Any comments you want to add to the db.</li></ul><p>When you finish entering the information click Apply which will then open yet another window. This next window displays the SQL statement to be executed. You can review that statement and make changes if necessary. If the statement is correct click Apply Changes to create the database.</p><p>You might not see the database appear in the lower pane immediately. You might have to close the SQL Editor tab and then re-open the connection to see your new database.</p><p><strong>Final thoughts</strong></p><p>We&#8217;ve just scratched the surface on a tool that will serve all of your MySQL database needs from now until this tool sees its EOL (which hopefully won&#8217;t be for a long, long time). The MySQL developers have really scored big with this tool.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/12/25/complete-database-administration-package-mysql-workbench/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Create and manage databases in Linux with Glom</title><link>http://www.ghacks.net/2009/11/25/create-and-manage-datases-in-linux-with-glom/</link> <comments>http://www.ghacks.net/2009/11/25/create-and-manage-datases-in-linux-with-glom/#comments</comments> <pubDate>Wed, 25 Nov 2009 20:41:38 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[database]]></category> <category><![CDATA[database administration]]></category> <category><![CDATA[db]]></category> <category><![CDATA[postgresql]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=20630</guid> <description><![CDATA[If you&#8217;ve ever had to work with a database in Linux you most likely are aware of three or four tools that can handle the task: MySQL, PostgreSQL, PhpMyAdmin, and OpenOffice Base. These are all outstanding applications, but the first two are complex command-line only tools, the third requires a web server, and the last [...]]]></description> <content:encoded><![CDATA[<p>If you&#8217;ve ever had to work with a database in Linux you most likely are aware of three or four tools that can handle the task: MySQL, PostgreSQL, PhpMyAdmin, and OpenOffice Base. These are all outstanding applications, but the first two are complex command-line only tools, the third requires a web server, and the last isn&#8217;t as robust as some admins will need. But there is another tool that is very flexible and makes creating databases a simple task.</p><p><a
title="Glom" href="http://www.glom.org/wiki/index.php?title=Main_Page" target="_blank">Glom </a>can help you design and create databases as well as a user-interfaces with little to know coding or command line skills. Glom has an easy to use GUI that focuses on helping you get your job done instead of being an hindrance. Glom uses the PostgreSQL database as a backend, but can only edit databases created internally. In other words, all of those databases you created with PostgreSQL&#8230;Glom can not touch them. That is fine, because Glom is very good at creating and managing your databases.</p><p>In this tutorial you will learn how to install and get started using Glom.</p><p><span
id="more-20630"></span><strong>Installation</strong></p><p>If you point your browser to the <a
title="Glom Download Page" href="http://www.glom.org/wiki/index.php?title=Download" target="_blank">Glom Download Page</a> you will see fairly concise instructions on how to install Glom on your distribution. You might notice the warning that the default Ubuntu repository holds an out of date, buggy version of Glom. I installed Glom onto Ubuntu 9.10, using the Ubuntu Software Center (without having to add any extra repositories). The version that installed was 1.12.2. The latest source code available for Glom is 1.12. So this warning is most likely unnecessary for Karmic Koala users.</p><p>Once you have Glom installed you will find the menu entry located in the Office sub-menu of the Applications menu.</p><p>NOTE: There is a version of Glom for Windows.</p><p><strong>Using Glom</strong></p><div
id="attachment_20632" class="wp-caption alignleft" style="width: 186px"><a
rel="attachment wp-att-20632" href="http://www.ghacks.net/2009/11/25/create-and-manage-datases-in-linux-with-glom/glom_new/"><img
class="size-full wp-image-20632  " src="http://www.ghacks.net/wp-content/uploads/2009/11/glom_new.png" alt="Create New" width="176" height="125" /></a><p
class="wp-caption-text">Create New</p></div><p>When you first fire up Glom a small window will open (see Figure 1). From that window click on the Create New Document tab. In this tab select New Empty Document and then click the Select button. The next step needs you to input two pieces of information:</p><ul><li>Name: This will serve as the actual file name.</li><li>Title: A human-readable name for your database.</li></ul><p>In this same window you can select an option that will save this database to a database server, or to save it locally. If you go with the former, you will have to input the details of the server in a separate step.  After you have all of your information configured, click the Save button to continue. Depending upon the speed of your machine, the database initiation phase can take some time. But once the database is initiated, a new window will open (see Figure 2) where you can begin to create tables for your database. When you are working with your database there are two user levels (selected from the User Level menu):</p><ul><li>Developer: This is the level you use to create/edit your databases.</li><li>Operator: This is the level you use to work with your databases.</li></ul><div
id="attachment_20634" class="wp-caption alignright" style="width: 168px"><a
rel="attachment wp-att-20634" href="http://www.ghacks.net/2009/11/25/create-and-manage-datases-in-linux-with-glom/glom_add_tables/"><img
class="size-full wp-image-20634  " src="http://www.ghacks.net/wp-content/uploads/2009/11/glom_add_tables.png" alt="Figure 2" width="158" height="160" /></a><p
class="wp-caption-text">Figure 2</p></div><p>To create a table click on the Add button which will create a new line for a table. You have to name the table, so double click on the first column of your new table and enter a name. When you do that hit enter and you will see that the Title will auto-fill for you. You can also select if this table is to be hidden and/or default by selecting the check box for either option.</p><p>After you have created the tables the Glom window will change to the data entry mode. For each table you have created you will have to enter data in order to fill the tables. Adding data is done the same way as adding a table. The difference is that you have to select which table you want to add data to from the Tables menu in the toolbar.</p><div
id="attachment_20635" class="wp-caption alignleft" style="width: 190px"><a
rel="attachment wp-att-20635" href="http://www.ghacks.net/2009/11/25/create-and-manage-datases-in-linux-with-glom/glom_data/"><img
class="size-medium wp-image-20635  " src="http://www.ghacks.net/wp-content/uploads/2009/11/glom_data-500x383.png" alt="Figure 3" width="180" height="138" /></a><p
class="wp-caption-text">Figure 3</p></div><p>After you have entered your data, you can then switch to the Details view (see Figure 3) where you can view data, add static items and containers to a record. You can also create new Fields to add to your data. These will come in handy as they can add data to a user entry such as their birthday.</p><p>To create a custom field go to the Developer menu and select Fields. From this window you can add, edit, and delete all of the fields you need.</p><p>After you have completed creating your database, go to the User Level menu, select Operator, and start working with your new database.</p><p><strong>Final thoughts</strong></p><p>Although this tutorial only scratches the surface of the power Glom offers, you get the idea that this tool could really make a database developers job very easy. Give Glom a try, you will look at PostgreSQL databases in a completely different light.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/11/25/create-and-manage-datases-in-linux-with-glom/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
