Feeds:
Posts
Comments

Archive for the ‘Mysql’ Category

“mysqlreport makes a friendly report of important MySQL status values. mysqlreport transforms the values from SHOW STATUS into an easy-to-read report that provides an in-depth understanding of how well MySQL is running. mysqlreport is a better alternative (and practically the only alternative) to manually interpreting SHOW STATUS.” Installation: root@server [~downloads]# wget hackmysql.com/scripts/mysqlreport root@server [~downloads]#chmod 755 [...]

Read Full Post »

You can upgrade from 5.0.x to 5.1.30 with cPanel scripts edit /var/cpanel/cpanel.config and set mysql-version=5.1 then execute /scripts/mysqlup then run /scripts/easyapache and then /scripts/perlinstaller –force Bundle::DBD::mysql to reset the new install ERROR! MySQL manager or server PID file could not be found! Solved: This error is caused by the my.cnf file that comes from mysql4 [...]

Read Full Post »

How to backup and restore MySQL database: ====================================== Here are the commands to manually do it via shell, given you have root privilege: To dump the database onto a text file: mysqldump database_name > database_name.sql To import the data into a database: mysql database_name < database_name.sql Replace database_name with the name of your database.

Read Full Post »

Reset Mysql root password..

First, stop mysql server /etc/init.d/mysql.server stop Start mysql in safe mode /usr/local/mysql/bin/mysqld_safe –user=root –skip-grant-tables –skip-networking & Now the mysql will be running in the background in safe mode. You will be able to login as root by just using: mysql -u root Once you got in you can use the following commands to reset the [...]

Read Full Post »

MySQL can sometimes create big problems on a server when you have users abusing it. This article will teach you how to correctly identify the queries that are creating a problem for your server. MySQL can log those queries that are taking longer then X seconds but this future is not turned on by default. [...]

Read Full Post »

Tuning the performance of MySQL can be a really hard job to do. There are many thinks to consider and no two servers are identical so there is no universal solution. Tuning Primer is a script that will help you tune your mysql installation by providing very healthy recommendations based on past mysql records. For [...]

Read Full Post »

Create mysql db backup:

File: === dbbackup.sh Description: ======== A shell script to backup a MySQL database Features: ====== The script can create a MySQL dump, compress it then both store a copy in the server and send a copy to the defined email address Supported OS: FreeBSD and RedHat, should work with other distributions How to install: ========= [...]

Read Full Post »

MySQL and PHP upgrade on cPanel is a very simple process, here is a list of steps that needs to be taken to upgrade these two components: 1. Login to your WHM as root; 2. Go to WHM >> Server Configuration >> Tweak Settings, scroll down to “MySQL” section, switch radio button to “5.0″ and [...]

Read Full Post »

Problem: ======= Postgres isn’t showing any errors on cpanel, because it does not return any error. The most common error is that postgres cannot connect with cpanel password. Resolution: ======= You can try just go to section OPTIONAL – SKIPING POSTGRES PERMISSION and then on Cpanel and change by Cpanel postgres password or, if it [...]

Read Full Post »

Warning: ===== First, do it by your risk and IF you know what your doing AND IF you do really need and AND IF your customers do not use postgres on this server yet. DO NOT UPGRADE IT ON PRODUCTION SERVERS UNLESS YOU’RE SURE ABOUT DOING IT. THERE IS NO WAY TO GO BACK!!!! ALSO, [...]

Read Full Post »

Older Posts »

Follow

Get every new post delivered to your Inbox.