<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
    <channel>
        <title>Run CUBRID Manager on Mac OS X</title>
        <link>http://www.cubrid.org/?mid=run_cubrid_manager_on_mac</link>
        <description>Run CUBRID Manager on Mac OS X</description>
        <language>en</language>
        <pubDate>Tue, 14 Dec 2010 10:13:42 -0800</pubDate>
        <lastBuildDate>Wed, 07 Dec 2011 00:13:48 -0800</lastBuildDate>
        <generator>XpressEngine 1.4.4.1</generator>
                        										        <item>
            <title>Run CUBRID Manag...</title>
            <dc:creator>CUBRID</dc:creator>
            <link>http://www.cubrid.org/run_cubrid_manager_on_mac</link>
            <guid isPermaLink="true">http://www.cubrid.org/run_cubrid_manager_on_mac</guid>
                                    <description><![CDATA[<h1>Run CUBRID Manager on Mac OS X</h1>

<div class="category"><a href="/cubrid_manager">⇐CUBRID Manager</a></div>

<div class="contents-table"></div>

<p>It is really the great news that CUBRID Manager is now available for Mac users. In this guide you will see how to establish a remote database connection from the CUBRID Manager to the CUBRID Server. The steps are quite easy.</p>

<h3>Prerequisites</h3>

<p>The CUBRID Manager does not depend on anything other than the Java Runtime Environment as it is implemented in Java, the cross platform programming language. So, you basically do not need to perform any preparations. JRE is usually installed on Mac OS X by default.</p>

<h2 id="downloads">Downloads</h2>

<ul><li><b>The CUBRID Manager</b><br />Download the CUBRID Manager for your Mac OS X from <a href="/cubrid_manager#downloads">http://www.cubrid.org/cubrid_manager</a>.</li><li><b>The CUBRID Database<br /></b>You can connect to the CUBRID Database installed on your remote physical machine or on a virtual machine. You can download the latest version of CUBRID from <a href="/downloads">http://www.cubrid.org/downloads</a>. For the Installation Instructions refer to <a href="/tutorials#getting-started" target="_self">http://www.cubrid.org/tutorials#getting-started</a>.</li></ul>

<h2 id="install">Install the CUBRID Manager</h2>

<p>The CUBRID Manager does not require any installations. It is distributed in an archived file with an extension <b>.tar.gz</b>. What you have to do is to just extract the contents of the archive to the desired location (e.g. Desktop).</p>

<h2 id="start">Start the CM</h2>

<p>Once you extract the CUBRID Manager you will see two directories (<b>/configuration</b> and <b>/plugins</b>) and an executable file (<b>cubridmanager</b>). To start the CUBRID Manager, double click on <b>cubridmanager</b>. You should see the CM's splash screen at this moment.</p>

<p><img src="/files/attach/images/49/697/003/cubrid-manager-splash-screen.png" alt="CUBRID Manager splash screen" width="725" height="544" editor_component="image_link"/></p>

<p>Once the CM is launched, the main window will look like this.</p>

<p><img src="/files/attach/images/49/697/003/cubrid-manager-main-window.png" alt="CUBRID Manager main window" width="725" height="544" editor_component="image_link"/></p>

<h2 id="add-host">Add a Host</h2>

<p>By default the CM provides the default database host named <b>localhost</b>. You can see on the <b>Hosts</b> panel on the left. You can add any number of hosts you want. For that just <i>right click</i> on <b>Hosts</b> panel and click <b>Add Host...</b> menu.</p><p><img src="/files/attach/images/49/697/003/add-host-popup-menu.png" alt="Add Host Popup Menu" width="273" height="196" editor_component="image_link"/></p><p>Alternatively, select the <b>File</b> menu and choose <b>Add Host...</b> from there.</p><p><img src="/files/attach/images/49/697/003/add-host-menu.png" alt="Add Host menu" width="374" height="168" editor_component="image_link"/></p><p>When you choose to add a new host to the CUBRID Manager, a pop-up window will appear.</p><p><img src="/files/attach/images/49/697/003/add-host.png" alt="Add host" width="527" height="382" editor_component="image_link"/></p>

<h3>Required Fields</h3>

<ol><li><b>Host name:</b> give this host a descriptive name.</li><li><b>Address:</b> this can be an IP address of a remote physical server or a VM instance within your LAN network. In those cases when you have CUBRID installed on the same machine as the CM (Windows and Linux case), you can enter <b>localhost</b> in this field.</li><li><b>Port:</b> the port which is specifically opened by your CUBRID Server. The default port for CUBRID is 8001. Sometimes 30000, or 33000.</li><li><b>User name:</b> the administrator's user name to connect to this host. Do not confuse it with the database user name. They are different. Refer to <a href="/intro_cubrid_security" target="_self">CUBRID Security Guidelines</a> if you want to learn more about it. Briefly host user name is like <b>root</b> user in MySQL. When you first time connect to a particular host (first time ever), the CUBRID host has a default user name and a password: <b>admin</b> for both. Once you first time login to the host, it will prompt you to change the password.</li><li><b>JDBC version:</b> normally, you leave this option as <b>Auto Detect</b>. However, if you need to connect to the CUBRID database which has a different version than the CUBRID Manager, they you have to indicate the JDBC driver for that exact CUBRID database.<br /><br /><u>For example</u>, if your CM has version 3.1 and you want to connect to CUBRID 3.1, you can select <i>Auto Detect</i> or <i>CUBRID-JDBC-8.3.1.0038</i>.<br />If your CM has version 3.1 and you want to connect to CUBRID 3.0, you have to select <i>CUBRID-JDBC-8.3.0.0337</i>. When you download the CM, it has only one version of the JDBC driver. So, in case you need to connect to another version, download the necessary JDBC driver from <a href="/cubrid_java_programming#downloads" target="_self">JDBC &amp; Java Programming with CUBRID</a>, and place it to the <b>/plugins</b> directory where your CM is located. As you can see in the above image, I have added the second JDBC driver to connect to CUBRID 3.0.</li></ol>

<p>Once you fill out all the fields, press the <b>Add</b> button to add the host, or press the <b>Connect</b> button to add the host and automatically establish the connection.</p>

<h2 id="connect-host">Connect to a Host</h2>

<p>To connect to a host, <b>double click</b> on its name.</p><p>Alternatively, <i>right click</i> on the host name and select the <b>Connect Host...</b> menu.</p><p><img src="/files/attach/images/49/697/003/connect-host-popup-menu.png" alt="Connect host" width="276" height="211" editor_component="image_link"/><br /></p><p>Or you can do the same by selecting <b>File</b> menu and choosing the <b>Connect Host...</b> menu.</p><p><img src="/files/attach/images/49/697/003/connect-host-menu.png" alt="Connect host menu" width="385" height="163" editor_component="image_link"/><br /></p><p>The following window should pop up. Press the <b>Connect</b> button.</p><p><img src="/files/attach/images/49/697/003/connect-host.png" alt="Connect host" width="527" height="382" editor_component="image_link"/></p><p>As mentioned before, when you establish the connection for the very first time, you enter the default <b>admin</b> <i>user name</i> and <b>admin</b> <i>password</i>. After that you will be prompted to change the password. Type the desired password and click <b>OK</b>.</p><p><img src="/files/attach/images/49/697/003/change-password.png" alt="Change password" width="502" height="402" editor_component="image_link"/></p><p>After you change the password it will ask you if you wish to login again with new credentials. Press <b>Yes</b>.</p><p><img src="/files/attach/images/49/697/003/relogin-host.png" alt="Relogin host" width="518" height="136" editor_component="image_link"/></p>

<h2 id="login-database">Login to a Database</h2>

<p>When you login to a host you will see a list of available databases. By default CUBRID creates a demo database called <b>demodb</b>.</p><p><img src="/files/attach/images/49/697/003/databases.png" alt="Databases" width="273" height="333" editor_component="image_link"/><br /></p><p>To connect to a demodb database, <b>double click</b> on the database name.</p><p>Alternatively <i>right click</i> on the database name and choose <b>Login Database...</b></p><p><img src="/files/attach/images/49/697/003/login-database-popup-menu.png" alt="Login database" width="379" height="151" editor_component="image_link"/><br /></p><p>Or <b>Action</b> ⇒ <b>Login Database...</b></p><p><img src="/files/attach/images/49/697/003/login-database-menu.png" alt="Login database" width="533" height="168" editor_component="image_link"/><br /></p><p>A popup window will appear which will prompt to enter the <i>database </i>user name and a password. The <b>demodb</b> database has <i>no password</i> defined for the user <i>dba</i>, so leave it blank.</p><p><img src="/files/attach/images/49/697/003/login-database.png" alt="Login database" width="402" height="242" editor_component="image_link"/></p>

<h2 id="start-database">Start the Database</h2>

<p>Once you login to a database, you will see the list of items it contains.</p><p><img src="/files/attach/images/49/697/003/database-not-started.png" alt="Database is not started" width="275" height="313" editor_component="image_link"/><br /></p><p>However, when you try to click on the <b>Tables</b> item to view the list of tables the database has, you will not be able to see it, because the database has not been started. In CUBRID, first, you login to a database, then you start it. This is done with the performance in mind. You do not unused databases consume the system resources, so you start the database you will work with. To start the database, <i>right click</i> on the database name and click on the <b>Start Database</b>.</p><p><img src="/files/attach/images/49/697/003/start-database-popup-menu.png" alt="Start database" width="329" height="237" editor_component="image_link"/><br /></p><p>Alternatively, select <b>Action</b> ⇒ <b>Start Database</b>.</p><p><img src="/files/attach/images/49/697/003/start-database-menu.png" alt="Start database" width="531" height="313" editor_component="image_link"/></p>

<h2 id="execute-query">Execute Queries</h2>

<p>Once you start the database, you will be able to see all the tables, view, etc., it has.</p><p><img src="/files/attach/images/49/697/003/database-started.png" alt="Database is started" width="266" height="492" editor_component="image_link"/><br /></p><p>Now you can perform all the database operations you need such as SELECT or INSERT queries. The CUBRID Manager has a powerful built-in Query Editor with a syntax highlighter and auto-complete feature. To open the Query Editor, <i>right click</i> on the database name and select <b>New Query</b> menu.</p><p><img src="/files/attach/images/49/697/003/new-query-popup-menu.png" alt="New Query" width="355" height="232" editor_component="image_link"/><br /></p><p>Or, <b>Action</b> ⇒ <b>New Query</b>.</p><p><img src="/files/attach/images/49/697/003/new-query-menu.png" alt="New Query" width="251" height="309" editor_component="image_link"/><br /></p><p>When you launch you will see the Query Editor which is divided into two panels. The upper panel is the query editor, while the lower panel displays the results of the query and also provides the Query Explanation.</p><p><img src="/files/attach/images/49/697/003/syntax-highlighter.png" alt="Syntax highlighter" width="725" height="544" editor_component="image_link"/></p><p>Once you start typing your query the Query Editor will show auto-complete options for the current word. Hit ENTER to accept the provided option. Try to execute some queries to get acquainted with the Query Editor.</p><p>For your convenience there are a shortcut for <b>SELECT * FROM ...</b> or <b>Select Count(*)</b> queries. If you want to see all the results from a particular table, <i>right click</i> on that table and choose <b>Select All</b>. If you want to see the number of records in that table, <i>right click </i> on the table and choose <b>Select Count(*)</b>.</p><p><img src="/files/attach/images/49/697/003/select-all-popup-menu.png" alt="Select All" width="453" height="384" editor_component="image_link"/></p><p>Below is the output for the <b>SELECT * FROM 'game';</b> query.</p><p><img src="/files/attach/images/49/697/003/select-query-results.png" alt="Select query results" width="725" height="544" editor_component="image_link"/></p>

<h2 id="getting-help">Getting Help</h2>

<p>The CM comes with the complete CUBRID Manual. To see the manual and learn more about the CUBRID Manager and CUBRID, select <b>Help </b>menu and again <b>Help</b> as shown in the image below.</p><p><img src="/files/attach/images/49/697/003/cubrid-manager-help.png" alt="CUBRID Manager Help" width="418" height="230" editor_component="image_link"/><br /></p><p>The CM will open your default Web browser and open the CUBRID Manual page which is located in the <b>/plugins</b> directory.</p><p><img src="/files/attach/images/49/697/003/cubrid-integrated-manual.png" alt="CUBRID integrated manual" width="725" height="544" editor_component="image_link"/><br /></p><p>If you like the PDF version, you can download the same CUBRID Manual from <a href="/documentation">http://www.cubrid.org/documentation</a>.</p><p>For other CM related guides see <a href="/cubrid_manager#tutorials">http://www.cubrid.org/cubrid_manager#tutorials</a>.</p><p>The complete list of CUBRID Tutorials can be found at <a href="/tutorials" target="_self">http://www.cubrid.org/tutorials</a>.</p><p>If you need our administrators' attention, leave your message on CUBRID Manager forum at <a href="/?mid=forum&amp;category=195526&amp;act=dispForumContent" target="_blank">http://forum.cubrid.org/</a>.</p>]]></description>
                        <pubDate>Tue, 14 Dec 2010 09:14:25 -0800</pubDate>
                        <category>macosx</category>
                        <category>cm</category>
                                </item>
            </channel>
</rss>
