<?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; mysql database</title> <atom:link href="http://www.ghacks.net/tag/mysql-database/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>Fri, 10 Feb 2012 20:51:26 +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>Learn How To Use MySQL Online</title><link>http://www.ghacks.net/2011/11/28/learn-how-to-use-mysql-online/</link> <comments>http://www.ghacks.net/2011/11/28/learn-how-to-use-mysql-online/#comments</comments> <pubDate>Mon, 28 Nov 2011 10:29:57 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Online Services]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[mysql database]]></category> <category><![CDATA[php]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=53281</guid> <description><![CDATA[Most webmasters have started to learn HTML before they moved on to programming languages such as PHP. With PHP come databases like MySQL as the primary storage for project data. Many popular online applications, such as WordPress, use the PHP and MySQL combination to power sites online. You usually do not need to know PHP [...]]]></description> <content:encoded><![CDATA[<p>Most webmasters have started to learn HTML before they moved on to programming languages such as PHP. With PHP come databases like MySQL as the primary storage for project data. Many popular online applications, such as WordPress, use the PHP and MySQL combination to power sites online.</p><p>You usually do not need to know PHP or MySQL if you download and install an application like WordPress. But if you want to start developing your own applications, or modifying existing ones, then you need to know the ins and outs of SQL database commands.</p><p>Head first SQL: Hands On is a free service by <a
href="http://headfirstlabs.com/sql_hands_on/hf01.htm">O&#8217;Reilly</a> that can be used to learn and execute MySQL queries online. when you open the Head First Labs site for the first time you see a form near the top that you can use to run MySQL commands.</p><p>The service provides access to several tables that are listed above the form. All you need to do is to enter a SQL query in the form to execute it. The core benefit of testing SQL commands here is that you do not have to create your own database first and fill it with data. Plus, you cannot really damage the database or tables this way.</p><p><a
href="http://www.ghacks.net/wp-content/uploads/2011/11/learn-how-to-use-mysql.jpg"><img
class="alignnone size-full wp-image-53282" title="learn how to use mysql" src="http://www.ghacks.net/wp-content/uploads/2011/11/learn-how-to-use-mysql.jpg" alt="learn how to use mysql" width="529" height="412" /></a></p><p>The results are displayed right beneath the for.  But the site offers more than just an option to run your own MySQL queries, which is especially useful for users who are just getting started and do not know anything about SQL.</p><p>The Get Started section of the page lists 33 MySQL lessons. The majority of lessons teach a specific command or command sets. This ranges from basic queries such as SELECT or INSERT to more complex operations. Not all lessons make sense, which can be attributed that some require that you have read the Head First SQL: Hands On book.</p><p>Some on the other hand can be used without having the book in reach. MySQL beginners will probably like the form on the start page the most, as it allows them to run custom SQL queries on sample database tables.</p><p>&nbsp;</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2011/11/28/learn-how-to-use-mysql-online/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <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>MySQL Database Comparison Software Mysql Structure Compare</title><link>http://www.ghacks.net/2009/12/22/mysql-database-comparison-software-mysql-structure-compare/</link> <comments>http://www.ghacks.net/2009/12/22/mysql-database-comparison-software-mysql-structure-compare/#comments</comments> <pubDate>Tue, 22 Dec 2009 14:24:47 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[database comparison]]></category> <category><![CDATA[linux software]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[mysql database]]></category> <category><![CDATA[mysql structure compare]]></category> <category><![CDATA[portable software]]></category> <category><![CDATA[windows software]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=21713</guid> <description><![CDATA[A website that is run by one of my friends got hacked recently resulting in several unpleasant manipulations like redirecting visitors to another domain. My friend suspected that the hacker manipulated the MySQL database of the website but there was not an easy way to find out. The only way he could think of was [...]]]></description> <content:encoded><![CDATA[<p>A website that is run by one of my friends got hacked recently resulting in several unpleasant manipulations like redirecting visitors to another domain. My friend suspected that the hacker manipulated the MySQL database of the website but there was not an easy way to find out. The only way he could think of was to manually browse the settings to see if a table in the database contained values that did not look correct. A tedious process with a high probability to miss some of the changes.</p><p>A quick Google search revealed the software Mysql Structure Compare which could help in the process. The software basically allows a webmaster to compare two MySQL databases with each other.</p><p><span
id="more-21713"></span><img
src="http://www.ghacks.net/wp-content/uploads/2009/12/mysql_database_comparison-500x362.jpg" alt="" title="mysql database comparison" width="500" height="362" class="alignnone size-medium wp-image-21714" /></p><p>This can be a very effective way of comparing snapshots of the same database, e.g. a current version and a backup. This is exactly what we did to check for changes between the hacked database and a database backup that was created the other day.</p><p>Mysql Structure Compare required two running databases that can either be hosted locally or remotely. The database name, user, password, host and port need to be specified in the application. The easiest way to setup the second database is to use a local AMP installation as the database host, this can be done with <a
href="http://www.ghacks.net/2007/01/31/host-your-own-webserver/">XAMPP</a> or <a
href="http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/">WAMPserver</a> for instance.</p><p>It is also possible to run both databases locally. Mysql Structure Compare is a portable software program for the Windows and Linux operating system that can effectively compare two MySQL databases with each other.</p><p>The software is <a
href="http://rubyforge.org/frs/?group_id=4838">available</a> at the developer&#8217;s website where it can be downloaded for all supported operating systems.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/12/22/mysql-database-comparison-software-mysql-structure-compare/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Creating a database with MySQL Administrator</title><link>http://www.ghacks.net/2009/12/09/creating-a-database-with-mysql-administrator/</link> <comments>http://www.ghacks.net/2009/12/09/creating-a-database-with-mysql-administrator/#comments</comments> <pubDate>Wed, 09 Dec 2009 19:43:38 +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[mysql]]></category> <category><![CDATA[mysql administration]]></category> <category><![CDATA[mysql database]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=21228</guid> <description><![CDATA[My last article illustrated how to manage your MySQL databases with a simple (albeit outdated) GUI MySQL Navigator (see my article &#8220;Manage your MySQL databases with an easy to use GUI&#8220;). Although that tool is outdated, it does still work for basic functionality. But there are better tools for managing your MySQL databases. One of [...]]]></description> <content:encoded><![CDATA[<p>My last article illustrated how to manage your MySQL databases with a simple (albeit outdated) GUI MySQL Navigator (see my article &#8220;<a
title="MySQL Navigator" href="http://www.ghacks.net/2009/12/08/manage-your-mysql-databases-with-an-easy-to-use-gui/" target="_blank">Manage your MySQL databases with an easy to use GUI</a>&#8220;). Although that tool is outdated, it does still work for basic functionality. But there are better tools for managing your MySQL databases. One of those tools, MySQL Administrator, is actually released by the MySQL developers. This tool will work with any MySQL installation &gt;= 4.0 and makes the daunting task of administrating MySQL databases far easier than any other desktop GUI tool.</p><p>And, to make matters even easier, MySQL Administrator is found in the standard distribution repositories, so installation is a breeze. And MySQL Administrator is available for both Linux and Windows, so even the non-Linux crowd can enjoy this fantastic tool. In this article you will see how to install MySQL Administrator as well as create a schema (aka database) and a table for your database.</p><p><span
id="more-21228"></span><strong>Installation</strong></p><p>As you would expect, all you need to do is fire up your software installation tool (such as Synaptic or the Ubuntu Software Center), do a search for &#8220;mysql administrator&#8221;, select the results, and install. You should already have a running MySQL installation, but if you do not the software installer should pick up all of the dependencies.</p><p>Once installed you will find this tool located in the Programming sub-menu of the Applications menu.</p><p><strong>Using MySQL Administrator</strong></p><div
id="attachment_21229" class="wp-caption alignleft" style="width: 268px"><a
rel="attachment wp-att-21229" href="http://www.ghacks.net/2009/12/09/creating-a-database-with-mysql-administrator/mysql_admin_login/"><img
class="size-full wp-image-21229 " src="http://www.ghacks.net/wp-content/uploads/2009/12/mysql_admin_login.png" alt="Figure 1" width="258" height="221" /></a><p
class="wp-caption-text">Figure 1</p></div><p>When you first start up the MySQL Administrator tool the login window will appear (see Figure 1). From this window you can create a local or a remote login. If you go for a remote login you have to make sure your remote MySQL server will allow for remote connections.</p><p>For this article we will focus on a local connection. So the information you need to enter will be similar to what you see in Figure 1. Once you enter the information click the Connect button to establish your connection. When the connection is made you will find yourself in the MySQL Administrator main window (see Figure 2). This window will immediately give you plenty of information about your MySQL connection as well as all the tools you need to work with MySQL.</p><div
id="attachment_21232" class="wp-caption alignright" style="width: 310px"><a
rel="attachment wp-att-21232" href="http://www.ghacks.net/2009/12/09/creating-a-database-with-mysql-administrator/mysql_admin_main/"><img
class="size-medium wp-image-21232 " src="http://www.ghacks.net/wp-content/uploads/2009/12/mysql_admin_main-500x269.png" alt="Figure 2" width="300" height="161" /></a><p
class="wp-caption-text">Figure 2</p></div><p>In order to create a new schemata you need to first open up the Catalogs window. The catalogs window is a listing of your current schemata (database collection). To open up the catalogs window double click on the Catalogs listing in the left pane.</p><div
id="attachment_21237" class="wp-caption alignleft" style="width: 310px"><a
rel="attachment wp-att-21237" href="http://www.ghacks.net/2009/12/09/creating-a-database-with-mysql-administrator/my_admin_catalogs/"><img
class="size-medium wp-image-21237 " src="http://www.ghacks.net/wp-content/uploads/2009/12/my_admin_catalogs-500x309.png" alt="Figure 3" width="300" height="185" /></a><p
class="wp-caption-text">Figure 3</p></div><p>When the catalogs listing opens (see Figure 3) take a look at the lower left pane. In this pane you will see a listing of your current schemata. In order to create a new schema right-click inside of that pane and select Create Schema. When you select this a small window will appear asking you to enter a name for your new schema. Do this and click OK and you will have an empty schema ready for you to add tables.</p><div
id="attachment_21244" class="wp-caption alignright" style="width: 310px"><a
rel="attachment wp-att-21244" href="http://www.ghacks.net/2009/12/09/creating-a-database-with-mysql-administrator/create_table/"><img
class="size-medium wp-image-21244 " src="http://www.ghacks.net/wp-content/uploads/2009/12/create_table-500x350.png" alt="Figure 4" width="300" height="210" /></a><p
class="wp-caption-text">Figure 4</p></div><p>In order to create a table in your schema you need to click the Create Table button after you have selected the schema you want to work with (see Figure 4).  The first thing you need to do is give your table a name.  Once that is done click in the Colun and Indices area and you will then be able to start building the fields for your table.</p><p>A couple of notes about fields:</p><ul><li>You will want to have one field with a primary key.</li><li>A primary key&#8217;s Data Type should be Integer.</li></ul><p>When you finish filling out the data for the first table click the Apply Changes button which will then bring up a window showing you the MySQL command to be executed. Click the Execute button and the command should go off smoothly. Once the command is finished you will see your new field in the Columns and Indices window. In order to create a new field click below the newly created field and start all over.</p><p>When you are finished working with your table click Close to dismiss this window. You have now added fields to your table in your schema. When you are finished with that scheme click Close and you are done.</p><p><strong>Final thoughts</strong></p><p>Don&#8217;t think this is all you can do with the MySQL Administrator tool. This tool can handle nearly every aspect of MySQL administration. After you become familiar with creating schema, tables, and fields, start poking around the rest of the tool and see if it will take care of all of your MySQL needs.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/12/09/creating-a-database-with-mysql-administrator/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>Manage your MySQL databases with an easy to use GUI</title><link>http://www.ghacks.net/2009/12/08/manage-your-mysql-databases-with-an-easy-to-use-gui/</link> <comments>http://www.ghacks.net/2009/12/08/manage-your-mysql-databases-with-an-easy-to-use-gui/#comments</comments> <pubDate>Tue, 08 Dec 2009 20:23:17 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Advanced]]></category> <category><![CDATA[database management]]></category> <category><![CDATA[datbase]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[mysql database]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=21181</guid> <description><![CDATA[If you&#8217;ve read my Linux content here on Ghacks enough, you have most likely noticed my preference for not using the MySQL command line. That is not to say I don&#8217;t ever use it, I just prefer tools to help make that aspect of database use easier. My preference, until recent, has been PhpMyAdmin (see [...]]]></description> <content:encoded><![CDATA[<p>If you&#8217;ve read my Linux content here on Ghacks enough, you have most likely noticed my preference for not using the MySQL command line. That is not to say I don&#8217;t ever use it, I just prefer tools to help make that aspect of database use easier. My preference, until recent, has been PhpMyAdmin (see my article &#8220;<a
title="Install PhpMyAdmin for easy MySQL administration" href="http://www.ghacks.net/2008/12/20/install-phpmyadmin-for-easy-mysql-administration/" target="_blank">Install PhpMyAdmin for easy MySQL administration</a>&#8220;). I have, however, found a new tool I am growing very fond of.</p><p>When you are looking to manage a local database, and you&#8217;re looking for a good GUI tool, look no further than MySQL Navigator for all your MySQL administrative needs. This tool makes for simple database creation, administration, and does so (for most tasks) with a simple to use GUI. That doesn&#8217;t mean you can get completely away from understanding the MySQL syntax &#8211; you may need it. But for much of the functioning, MySQL Navigator can handle the task.</p><p>In this tutorial you will see how to install MySQL Navigator and create a database with this simple GUI tool.</p><p><span
id="more-21181"></span><strong>Installation</strong></p><p>The MySQL Navigator tool should be found in your distributions&#8217; repository. So all you will need to do is fire up your software installation tool (such as the Ubuntu Software Center or Synaptic), search for &#8220;mysql navigator&#8221;, select the results, and install. Naturally you will need to have MySQL installed. If you do not, the installation tool should pick up these dependencies for you.</p><p>Once installed, you will find the MySQL Navigator executable in the Accessories sub-menu of the Applications menu in GNOME. Now let&#8217;s start using this tool.</p><p>NOTE: I am going to assume you already have your MySQL root user password handy. You will need it in order to connect to your databases.</p><p><strong>Usage</strong></p><div
id="attachment_21182" class="wp-caption alignleft" style="width: 310px"><a
rel="attachment wp-att-21182" href="http://www.ghacks.net/2009/12/08/manage-your-mysql-databases-with-an-easy-to-use-gui/mysql_navigator_main/"><img
class="size-medium wp-image-21182 " src="http://www.ghacks.net/wp-content/uploads/2009/12/mysql_navigator_main-500x378.png" alt="Figure 1" width="300" height="227" /></a><p
class="wp-caption-text">Figure 1</p></div><p>When you fire up MySQL Navigator two windows will appear (see Figure 1). What you have to do is select the database you want to manage. You can manage remote databases if you like, but for the purposes of this article, we will stick with local machines. In order to connect to the default server you need to right click the <em>root@localhost</em> listing and select modify. In this new window you will need to enter the MySQL administrator username (probably root) and password.</p><p>NOTE: If you do not see the smaller window when you first fire up the tool you will need to go to the File menu and select New.</p><div
id="attachment_21183" class="wp-caption alignright" style="width: 310px"><a
rel="attachment wp-att-21183" href="http://www.ghacks.net/2009/12/08/manage-your-mysql-databases-with-an-easy-to-use-gui/mysql_nav/"><img
class="size-medium wp-image-21183 " src="http://www.ghacks.net/wp-content/uploads/2009/12/mysql_nav-500x438.png" alt="Figure 2" width="300" height="263" /></a><p
class="wp-caption-text">Figure 2</p></div><p>After you enter the proper information, dismiss the settings window and double click the <em>root@localhost</em> entry to open up the listing of databases (see Figure 2).</p><p>In order to create a new database, right-click the Database entry and select Create Database. This will open up a simple window with only a text area where you give the new database a name. Enter that name and click OK. I am going to create a sample database called &#8220;ghacks&#8221;.</p><p>Let&#8217;s create a table on our &#8220;ghacks&#8221; database. From the MySQL menu select the &#8220;Tables&#8221; entry to open up the Table tool (see Figure 3). In this new window you will first want to select the newly created &#8220;ghacks&#8221; database from the Database drop-down. Once you have the correct database selected you can go through and fill out the necessary information for the table.</p><div
id="attachment_21186" class="wp-caption alignleft" style="width: 310px"><a
rel="attachment wp-att-21186" href="http://www.ghacks.net/2009/12/08/manage-your-mysql-databases-with-an-easy-to-use-gui/mysql_nav_table/"><img
class="size-medium wp-image-21186 " src="http://www.ghacks.net/wp-content/uploads/2009/12/mysql_nav_table-500x407.png" alt="Figure 3" width="300" height="244" /></a><p
class="wp-caption-text">Figure 3</p></div><p>You can create more than one field for your table by adding the field information (in the right pane) and clicking the Save button. When the table info is complete click the Fire button to add your table. NOTE: You must at least create one set of fields or you will get an error when you click the Fire button.</p><p>You will also want to click on the Key tab and make sure you create a Primary Key for your table.</p><p>When you are finished creating your table, click the Close button to dismiss this window.</p><p>You can continue getting more and more granular with this tool. If you go back to the main window you will see the listing of the new database. Expand that database and you will see your newly created table. If you double-click the newly created table a new window will open where you can add data for values in the fields of your table. This isn&#8217;t as intuitive as the other functions. To insert a value right click inside of the new window and select &#8220;Insert&#8221;. This new window will list your data as a MySQL statement tat looks like:</p><p><code>INSERT INTO categories</code></p><p><code> </code></p><p><code>(</code></p><p><code>linux,</code></p><p><code>windows</p><p>)</p><p>VALUES</p><p>(</p><p>"",</p><p>""</p><p></code></p><p>In this instance you have to actually add your values in the text. So let&#8217;s say we want to add the following values for the fields:</p><p>linux &#8211; Ubuntu</p><p>windows &#8211; Windows 7</p><p>To do this the MySQL syntax would look like:</p><p><code>INSERT INTO categories</code></p><p><span
style="font-family: monospace">(</span></p><p><code>linux,</code></p><p><code>windows</code></p><p><code>)</p><p>VALUES</p><p>(</p><p>"Ubunutu",</p><p>"Windows 7"</p><p></code></p><p><code>)</code></p><p>When you have made these edits click the File menu and select Fire to execute.</p><p><strong>Final thoughts</strong></p><p>If you are looking for a simple to use GUI for the management of your MySQL databases, look no further than MySQL Navigator. Although you will need to have a cursory understanding of MySQL, it will make the administration of your databases much easier.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/12/08/manage-your-mysql-databases-with-an-easy-to-use-gui/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Database Monitoring Software Db2rss</title><link>http://www.ghacks.net/2009/07/30/database-monitoring-software-db2rss/</link> <comments>http://www.ghacks.net/2009/07/30/database-monitoring-software-db2rss/#comments</comments> <pubDate>Thu, 30 Jul 2009 12:18:57 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[blackfish sql]]></category> <category><![CDATA[database]]></category> <category><![CDATA[database monitoring]]></category> <category><![CDATA[db2rss]]></category> <category><![CDATA[interbase]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[mysql database]]></category> <category><![CDATA[Network Monitoring]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=14903</guid> <description><![CDATA[Database monitoring is not only important for businesses who want to monitor their online and offline services and applications but also for individuals. Webmasters who make use of databases like MySQL need to make sure that the databases are up and running and the best way to ensure that is to monitor them 24/7. Quite [...]]]></description> <content:encoded><![CDATA[<p><img
src="http://www.ghacks.net/wp-content/uploads/2009/04/microsoft_windows.jpg" alt="microsoft windows" title="microsoft windows" width="128" height="128" class="alignleft size-full wp-image-11907" />Database monitoring is not only important for businesses who want to monitor their online and offline services and applications but also for individuals. Webmasters who make use of databases like MySQL need to make sure that the databases are up and running and the best way to ensure that is to monitor them 24/7. Quite a few monitoring services exist. It is possible to use online services &#8211; most of them paid depending on the quality and quantity of monitoring &#8211; but also services that run on a local PC.</p><p>We have dealt with several services in the past including the <a
href="http://www.ghacks.net/2009/05/28/network-monitoring-software/">network monitoring software</a> Open Monitor or the online service <a
href="http://www.ghacks.net/2008/07/19/monitor-your-servers-with-livewatch/">Livewatch</a>.</p><p><span
id="more-14903"></span>The database monitoring software dv2rss is different from these solutions. The main difference is that it can &#8211; as the title implies &#8211; monitor databases but also because it can only be run from the command line or a script. That&#8217;s not as bad as it sounds and it could be welcome in certain situations where no graphical user interface is needed or wanted.</p><p><a
href="http://www.be-precision.com/products/precision-utils/#db2rss">Db2rss</a> supports MySQL, Interbase and Blackfish SQL databases at the moment and can monitor them in a computer network or on the Internet. It comes with several command line parameters that define important information such as the database&#8217;s host name, the username and password. There are quite a few additional parameter that include running an SQL command on the database, comparing the results to a local copy and defining templates and title of the resulting RSS feed. The RSS feed is another aspect of this database monitoring software that is usually not found in other monitoring software programs.</p><p>It is then possible to subscribe to the RSS feed to receive the database monitoring information after the script&#8217;s execution. The software developer suggests to use the Windows task scheduler to run the database monitoring software regularly.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/07/30/database-monitoring-software-db2rss/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Backup MySQL Databases In Linux Regularly</title><link>http://www.ghacks.net/2009/01/12/backup-mysql-databases-in-linux-regularly/</link> <comments>http://www.ghacks.net/2009/01/12/backup-mysql-databases-in-linux-regularly/#comments</comments> <pubDate>Mon, 12 Jan 2009 00:08:19 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[backup database]]></category> <category><![CDATA[backup mysql]]></category> <category><![CDATA[cron job]]></category> <category><![CDATA[cron tab]]></category> <category><![CDATA[database]]></category> <category><![CDATA[linux tutorial]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[mysql database]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=9829</guid> <description><![CDATA[The post Using Cron to Automate Linux Tasks by Jack got me thinking that some users might be interested in a practical example. The following tutorial will explain how to setup a small script to backup MySQL databases on a Linux server which will be run daily using a cron job. The best way to [...]]]></description> <content:encoded><![CDATA[<p>The post <a
href="http://www.ghacks.net/2009/01/11/using-cron-to-automate-linux-tasks/">Using Cron to Automate Linux Tasks</a> by Jack got me thinking that some users might be interested in a practical example. The following tutorial will explain how to setup a small script to backup MySQL databases on a Linux server which will be run daily using a cron job. The best way to start would be to read up on the introduction by Jack about Cron so that you got a understanding of the basics.</p><p>We start by creating the bash script first and continue with the cron job after the bash script has been tested to work as intended. All commands in the following paragraphs are executed from the command line.</p><p><span
id="more-9829"></span><code>vi backup.sh</code></p><p>This will create an empty text file in the vi editor. This will be the script that will be executed by the cron job on a daily basis.</p><p><code>bin/sh<br
/> /usr/bin/mysqldump -A -u [Username] -p[Password] | gzip > /backups/mysqldump`date +%m_%d_%y`.gz<br
/> </code></p><p>Press <strong>i</strong> to enter insert mode and copy and paste the two lines above in the editor. What the script does is to use the mysqldump function to create a mysql backup and store it gzipped in the backups directory using mysqldumpDate.gz as the name with data being the day the backup was created.</p><p>The two variables [Username] and [Password] have to be edited and the username and password of a user with sufficient rights entered. It might also be necessary to change the location of the backup folder.</p><p>Press <strong>ESC</strong> to enter command mode and <strong>:x</strong> to save the file.</p><p><code>./backup.sh</code></p><p>Execute the script to see if it is working correctly. It should create the dump of the MySQL database in the defined directory. It might be necessary to change the permission level of the backup.sh file if you get a permission error during execution.</p><p><code>chmod 755 backup.sh</code></p><p>If the script is working as intended it can be added as a cron job. The following command will open the user crontab list.</p><p><code>crontab -e</code></p><p>If you are in the vi editor you press i to enter insert mode again and add the following line</p><p><code>0 7 * * * /path/to/backup.sh</code></p><p>Please refer to the tutorial for a detailed instruction on how to set the cron job up to suite your needs. This one will execute the script every day on 7am.</p><p>It is a good idea to check back after the next execution to verify that everything is working as intended.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/01/12/backup-mysql-databases-in-linux-regularly/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>Data Conversion Software Convert</title><link>http://www.ghacks.net/2008/12/07/data-conversion-software-convert/</link> <comments>http://www.ghacks.net/2008/12/07/data-conversion-software-convert/#comments</comments> <pubDate>Sun, 07 Dec 2008 11:55:32 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[Software]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[convert data]]></category> <category><![CDATA[csv file]]></category> <category><![CDATA[data conversion]]></category> <category><![CDATA[Data Conversion Software]]></category> <category><![CDATA[dBase]]></category> <category><![CDATA[mysql database]]></category> <category><![CDATA[sdf file]]></category> <category><![CDATA[windows software]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=8787</guid> <description><![CDATA[It is sometimes necessary to convert between data formats. This is most of the time the case if you have a data format that is not accepted by a specific software. Adding the data manually is usually not an option which means that it is only possible to convert the data from the original data [...]]]></description> <content:encoded><![CDATA[<p>It is sometimes necessary to convert between data formats. This is most of the time the case if you have a data format that is not accepted by a specific software. Adding the data manually is usually not an option which means that it is only possible to convert the data from the original data format into a supported one.</p><p><a
href="http://www.killetsoft.de/p_conb_e.htm">Convert</a> is a data conversion software that can convert the data formats dBase, csv and sdf. One of the more interesting features for webmasters is the option to create MySQL database import information on top of csv or sdf output files which make it possible to convert one of the data formats into a file that can be imported into a MySQL database.</p><p>The software displays all options in the main interface which might be a bit intimidating for inexperienced users. Most of the settings however do not need to be edited to work with the application. The minimum is to select the input file format and load it into the data conversion software.</p><p><span
id="more-8787"></span><img
src="http://www.ghacks.net/wp-content/uploads/2008/12/data_conversion_software-454x500.jpg" alt="data conversion software" title="data conversion software" width="454" height="500" class="alignnone size-medium wp-image-8788" /></p><p>The second step is to select the output format and click on the write output file button in the lower left corner. It might be necessary to change the character set, decimal separator, csv separator or csv field frame if these do not match.</p><p>This is however easy to check as the data sets are displayed in the main interface once the input file has been loaded.</p><p>Interesting are the hierarchical sorting conditions which are completely optional as well as the record filter. The data conversion software convert can also concatenate files.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/12/07/data-conversion-software-convert/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
