Posted in Quick Tips & Tricks by tux |
Quick tip in backing up and restore your MySQL database:
Backing up and Restoring MySQL database
Backing up database:
Syntax:
mysqldump -u [username] -p [password] [databasename] > [backupfile.sql]
o [username] -database username
o [password] -password for your database
o [databasename] – the name of your database
o [backupfile.sql] – the file to which the backup should be written.
Example:
mysqldump -u root -p asterisk > asteriskbackupmarch3.sql
(just input the password when prompt for password)
Multiple database:
Syntax:
mysqldump -u [username] -p [password] –databases [databasename1] [databasename2] > [backupfile.sql]
Example:
mysqldump -u asteriskuser -p –databases asterisk asteriskcdrdb > multibackup.sql
(then input db password)
Posted in Quick Tips & Tricks by tux |
Setting up mysql password is one of the essential task in systems administration
Note: Linux/Unix login root account for your operating system and MySQL root are different
You can use the built-in “mysqladmin” command to change MySQL root password. It can be executed anywhere as long the binary path is set on your Linux or Windows environment
Condition 1: If you have never set a root password for MySQL, the server does not require a password at all for connecting as root. To setup root password for first time, use mysqladmin command at shell prompt as follows:
Posted in Tutorials by tux |
QMAIL HOW TO
I. Qmail Installation
A. INSTALLATION
A.1. Software Pre-requisites
1. Linux Operating System
2.Apache Web Server
3.Perl –any version of 5
4.GCC – the gcc compiler
5. wget – use for downloading installers
6. patch & patchutils -
Access to a domain name server (DNS) is highly recommended.
A.2 Download the source