View the Most Wanted LQ Wiki articles.
LinuxQuestions.org > Linux Wiki > MySQL

From LQWiki

Jump to: navigation, search

MySQL is an open source RDBMS server that uses SQL for inserting, selecting and updating data. It's very fast, capable, flexible, and runs on UNIX, Linux, Mac and Windows platforms.

Contents

QuickStart

Install mysql from your distribution. Start mysql on your local computer with

/etc/init.d/mysql start

Build up a connection to mysql:

mysql --user root
mysql> show databases;

Set root's password.

mysql> set password = password("new_password");

Set up a GUI to administer your new mysql database.

Add a user

This adds a user named user1 with a password password1

mysql --user root --password password1
grant all on * to 'user1'@'localhost' identified by 'password1' with grant option;

GUI's include

See also

External links


Personal tools