Open main menu

Pathology Education Instructional Resource β

Changes

This Is Your Brain On Informatics: MariaDB

1,888 bytes added, 20:10, 14 November 2013
no edit summary
===mysql -u ''username'' -p=Installing a User Interface (SQL Buddy)==
===Installation=== <p>The above command user interface that we installed is sqlbuddy, which can be acquired from http://sqlbuddy.com/. This site will give access allow the user to download a zip file of the user interface. Move this file to the server using an ftp client (such as filezilla) and then use [[This Is Your Brain On Informatics: Linux|mv]] to move the MariaDB zip file to directory shown below and remain there for the rest of installation. <pre>/usr/share/nginx/html</pre> In order to unzip the file, unzip must first be installed on the server. If it is not type: <pre>aptidude install unzip</pre> Then, unzip the file by typing: <pre>unzip sqlbuddy.ziprm -rf sqlbuddy.zip</pre> The files, which are now embedded in ''sqlbuddy/src'' need to be moved to ''sqlbuddy''. Do this by typing: <pre>mv sqlbuddy/src/* sqlbuddy</pre> Now, a username final configuration must be done in the ''www'' file so that has previously been createdthe index.php will be recognized as the primary site. The next Go to the file shown below using [[This Is Your Brain On Informatics: Linux|pico]] (or any other text editor of your choice). <pre>/etc/nginx/sites-available/www</pre> In this file add ''index.php'' to the line shown below (shown with ''index.php'' added already). <pre>index index.html index.htm index.php</pre> Sqlbuddy should now be able to be accessed by typing in ''yourservername/sqlbuddy'' into the browser.</p> ===Troubleshooting===<p>There are still some quirks that may need to be worked out at this point. </p>====Firefox====<p>Firefox is excellent at tracking history; however, because of this, anything that was done incorrectly during the setup of sqlbuddy, mariadb, or even php will prompt for a passwordbe remembered by the browser. If firefox is your browser of choice, it will be necessary to clear any history, after doing any major troubleshooting in order to allow those changes to take effect in firefox.</p> ==MariaDB SQL Commands==
===SQL===
|-
! Command* !! Syntax !! Description
|-
| mysql || mysql -u ''username'' -p || Command line command where ''username'' should be replaced by the user's account name
|-
| `''table''` || || Syntax for indicating a table
347
edits