Monthly Archives: June 2011

You are browsing the site archives by month.

How string comparison works in shell script

According to my experience with scripting, shell scripting is completely different than any other scripting languages. While creating one script for database monitoring purpose, got stuck with weird error on string comparison. It looks like very easy but it took so much time for me to found the solution. While comparing 2 strings in “IF” Continue Reading

How to monitor performance of MySQL Server

Performance Monitoring of MySQL Server: Following are the command which we can use for session or server level performance for MySQL server. SHOW GLOBAL STATUS – shows global server status SHOW LOCAL STATUS  - This is used for session level server status Have to check following values to know how server works. Aborted_clients : Usually Continue Reading

How to unlock huawei comet U8150

This is the best site to unlock the huawei comet U8150 phone. I have tried it, follow all the steps and finally my phone is unlocked and I’m using different service provider on the same phone. http://www.dc-unlocker.com/huawei_u8150_detect_and_unlock_procedure  

MySQL DBA Responsibilities

Overview of DBA duties Server startup/shutdown Mastering the mysqladmin administrative client Using the mysql interactive client User account maintenance Log file maintenance Database backup/copying Hardware tuning Multiple server setups Software updates and upgrades File system security Server security Repair and maintenance Crash recovery Preventive maintenance Understanding the mysqld server daemon Performance analysis Obtaining and Installing Continue Reading

How to reset MySQL root password

1. Stop mysql service shell> /etc/init.d/mysql stop 2. Start to MySQL server without password. shell> mysqld_safe –skip-grant-tables & 3. Connect to mysql server using mysql client. shell> mysql -u root Welcome to the MySQL monitor.  Commands end with ; or g.Your MySQL connection id is 107Server version: 5.1.49-1ubuntu8.1 (Ubuntu)Type ‘help;’ or ‘h’ for help. Type Continue Reading

How to secure MySQL server

OS level Security: Never run the MySQL server as the linux ‘root’ user. Always create the separate user for MySQL and start/stop MySQL server with it. If the data directories are located under $mysql_home/data dir then make sure that directory and all subdirectories should have only read and write privileges for the mysql user. Always Continue Reading

How to convert MySQL database from Latin1 to Utf8

Once client decided to switch database from Latin1 to UTF8. I was working on a Linux platform at the time but you can do the same thing in Windows too. Some people have a site that is using a Mysql database which uses the Latin1 character set and they want to convert their database to Continue Reading

Troubleshooting MySQL Replication

If you have followed the instructions, and your replication setup is not working, than the first thing to do is check MySQL error log. (if you dont know where it is? Just check my.cnf for the location of that file). Most of time, you will get the actual error from the log if not than Continue Reading