Configuring basic MariaDB server

From Notes_Wiki
Revision as of 04:06, 7 November 2012 by Saurabh (talk | contribs) (Created page with "=Configuring basic MySQL server= =Installation= To install mysql server use: <pre> yum -y install mysql-server </pre> =Configuration= ==Starting mysql server== To start...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Configuring basic MySQL server

Installation

To install mysql server use:

yum -y install mysql-server


Configuration

Starting mysql server

To start mysql server use:

service mysqld start


Enabling on start-up

To configure mysql server such that it automatically runs on system boot use:

chkconfig mysqld on


Setting root password

By defauly mysql root user has no password (empty password) which is not very secure. To setup root password for mysql use '/usr/bin/mysql_secure_installation' script. This script will ask for current root password which is blank and then will ask for new root password twice. It will also ask a number of other queries. Answer 'Y' (default) for all other queries.