117 - Error 2003 (HY000): Can't connect to MySQL server on ...

If you have a message like :

$ mysql -u root -p<password> -h myserver

ERROR 2003 (HY000): Can't connect to MySQL server on 'myserver' (10061)

Please Check the following things  to slove the problem.

1. Check if mysqld is running or not in the  server.

# ps -ef | grep mysqld

116 - Kill user's Processes

1. How to halt/stop user called user01

# skill -STOP -u user01

2. How to resume already halted user called iser01

  Send CONT single to user user01, type the following command:

# skill -CONT -u user01

3.How to kill and logout user called user01

115 - Restore Command

System administration command. Restore backed up files from a dump archiv.
Execure this command with one of the following flags.

1. Restart Rescue Mode by Installation DVD(or CDROM)

2. Mount an external device or NFS to access dump files.
   Ex. Like USB and so on which has dump files for restore.

114 - ssh : root login

 If you want to permit someone to login directly to the root login account via ssh, you can define three methods
of control in the /etc/ssh/sshd_config file:

        PermitRootLogin         no

This will disable all root logins. To enable root logins with any authentication method, use the following setting:
 
        PermitRootLogin         yes

113 - Forget root password.

Sometimes an administrator forgets root password. You need to reset it for login.

1. Reboot OS with single mode.

Login :
[Ctrl] + [Alt] + [Delete] to reboot the operation system

2. Enter Ctrl + x

When the grafical screen comes up, please enter [Ctrl] + x
It shows "OS reboot options list"

3. Edit a reboot line.

112 - How to get a dump for Linux LVM

1. Create Snapshot first.

Before creating a snapshot, please check the disk space of volume group.

# vgdisplay

  ..........

  Total PE              4347
  Alloc PE / Size       3902 / 121.94 GB
  Free  PE / Size       445 / 13.91 GB

111 - Linux Rescue Mode

The official Red Hat DVD (disk 1) can serve as a bootable emergency disk for most modern PCs with BIOS that can boot from DVDs.
It includes file system tools for emergency system administration. Using this disc you can attempt to recover from file system-related crashes.

When your system crashes due to a power failure or any other dire reasons, you may find your file system to be corrupt, and Red Hat Linux
might refuse to boot as normal. In such a case do the following:

1. Insert Red Hat CD-ROM (disc 1) in your DVD or CD-ROM and boot your computer.

110 - Oracle Enterprise Manager

The command to start OEM and stop OEM are the followings.

Start OEM :

# which emctl
/d01/app/oracle/product/11.1.0/db_1/bin/emctl

109 - Postfix(SMPT) & Dovecot(pop3, imap) for ubuntu server

1. Postfix (SMTP)

Postfix is the default Mail Transfer Agent (MTA) for Ubuntu. It is in Ubuntu's main repository, which means that it receives security updates.
This explains how to install and configure postfix and set it up as an SMTP server.

In order to install Postfix with SMTP-AUTH and TLS, first install the postfix package from the Main repository using your favorite
package manager. For example:

108 - CUPS (Common UNIX Printing SystemTM)

The Common UNIX Printing SystemTM, or CUPS, is the software you use to print from applications like the web browser
you are using to read this page. It converts the page descriptions produced by your application into something your printer
can understand and then sends the information to the printer for printing.

Every printer manufacturer does things differently, printing can be very complicated. CUPS does its best to hide this from you
and your application so that you can concentrate on printing and less on how to print.

Syndicate content