GuidePedia

0

Install MySQL to configure Database Server.
root@www:~#
aptitude -y install mysql-server-5.6
# set MySQL's root password

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

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

Enter password:
# MySQL root password

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 44
Server version: 5.6.16-1~exp1 (Ubuntu)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

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

# show user info

mysql>
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)

mysql>
exit

Bye

Post a Comment

Blogger Tips and TricksLatest Tips And TricksBlogger Tricks

Visitors

Cloud Power For You

Website Hosting At Low Price

Contatc

Empire Views
 
Top