LinuxMCE Forums

General => Users => Topic started by: dcubox1 on April 14, 2010, 03:03:53 PM

Title: Install mySQL
Post by: dcubox1 on April 14, 2010, 03:03:53 PM
What is the easiest way to install mySQl to allow me look at the database tables?
Title: Re: Install mySQL
Post by: jimbodude on April 14, 2010, 04:20:52 PM
DO NOT DIRECTLY EDIT THE DATABASES UNLESS YOU KNOW WHAT YOU ARE DOING!

Look all you want, just don't touch.

...I'm assuming you've already installed LinuxMCE?  If that's the case, you already have one option.

To log in, execute:

mysql -u root


To see the databases:

show databases;


To use a database:

use {database name here}


Then you can do SQL from there.


The other option is MySQL Query browser - a graphical interface.  To get it:

sudo apt-get install mysql-query-browser


Run it from the KDE desktop or with terminal command"

mysql-query-browser


In both cases, you will probably need to collect some knowledge about how SQL databases work.
Title: Re: Install mySQL
Post by: dcubox1 on April 14, 2010, 05:11:37 PM
Quote from: jimbodude on April 14, 2010, 04:20:52 PM
The other option is MySQL Query browser - a graphical interface.  To get it:

sudo apt-get install mysql-query-browser


Run it from the KDE desktop or with terminal command"

mysql-query-browser


In both cases, you will probably need to collect some knowledge about how SQL databases work.

Thanks for this, I work with SQL databases every day, I know the implications of messing around with them. Cheers for the info.