Blogs

How to reset mysql root password in Ubuntu

In order to reset root mysql password follow this procedure

1. Stop mysql service

# service mysql stop

2. Start mysql service skipping grant tables

# mysqld_safe --skip-grant-tables &

3. In a different console login as root with no password

$ mysql -u root

4. Within the mysql console execute

mysql> use mysql;
mysql> update user set password=PASSWORD("YOUR-NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit

5. Stop mysql service

Chapter 13. Filesystem Features: Swap, Quotas, Usage

Objectives

  • Understand the concept of swap and quotas
  • Use utilities that help manage quotas 
    • quotacheck
    • quotaon
    • quotaoff
    • edquota
    • quota
  • Use the monitoring utilities like
    • df
    • du

Swap

Its a virtual memory used to help the operating system. This swap memory is often allocated on the hard disk or a different location than the actual ram memory.

The recommended size of the swap memory is equal to the size of the actual memory.

Pages

Subscribe to RSS - blogs