Debian 8 Jessie
Sponsored Link

Install MariaDB2015/05/16

 
Install MariaDB to configure database server.
[1] Install MariaDB.
root@www:~#
aptitude -y install mariadb-server-10.0
# set MariaDB's root password

  +-------------------+ Configuring mariadb-server-5.5 +--------------------+
  | While not mandatory, it is highly recommended that you set a password   |
  | for the MariaDB administrative "root" user.                             |
  |                                                                         |
  | If this field is left blank, the password will not be changed.          |
  |                                                                         |
  | New password for the MariaDB "root" user:                               |
  |                                                                         |
  | ********_______________________________________________________________ |
  |                                                                         |
  |                                 <Ok>                                    |
  |                                                                         |
  +-------------------------------------------------------------------------+

root@www:~#
mysql -u root -p
# connect to MariaDB

Enter password:
# MariaDB root password

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 40
Server version: 10.0.16-MariaDB-1 (Debian)

Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

# show user info

MariaDB [(none)]>
select user,host,password from mysql.user;

+------------------+-----------+-------------------------------------------+
| user             | host      | password                                  |
+------------------+-----------+-------------------------------------------+
| root             | localhost | *247xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| root             | www       | *247xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| root             | 127.0.0.1 | *247xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| root             | ::1       | *247xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| debian-sys-maint | localhost | *247xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
+------------------+-----------+-------------------------------------------+
5 rows in set (0.00 sec)

MariaDB [(none)]>
exit

Bye
Matched Content