Hoaxblog.com

Everything is hoax!

Pages:

  • About

Categories:

  • Apache (6)
  • backup (1)
  • cache (2)
  • Cpanel/WHM (11)
  • ddos (1)
  • exam (1)
  • file hosting (2)
  • General (11)
  • Hosting (1)
  • It’s me (2)
  • linux (1)
  • Linux Shell (14)
  • Make Money Online (2)
  • Mysql (2)
  • mysqldump (1)
  • php (1)
  • Programming (3)
  • proxy (1)
  • Reseller (1)
  • SEO (1)
  • Servers (21)
  • VPN (1)
  • Windows (6)
  • wordpress (1)

Archives:

  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • October 2007
  • May 2007
  • April 2007

Blogroll

  • Free Rapidshare Downloads

Meta:

  • Register
  • Login
  • Valid XHTML
  • XFN
  • WordPress

Archive for the 'Mysql' Category


Backing Up/Restoring Mysql Databases using SSH/Shell
02 27th, 2008

This is really the most handy tool for mysql databases. A built in mysqldump can be used via shell to dump mysql databases within a few minutes. Sometimes dumping backups using phpmyadmin is too hazardous. So it’s really a necessary tool and fast too. I have listed this commands and i believe this should be useful to lots of system admins :)

Taking Database Backup

mysqldump -uuser -pmysqluserpassword database_name > database_name.sql

Restoring a Database

mysql -uuser -pmysqluserpassword database_name < database_name.sql

Here, you need to replace the user with the proper database user who has access to that specific database and the mysqluserpassword directs the password of that specific user. Here, one important thing is database_name.sql file can be replaced with the location of the sql file, suppose if you want to save it or retrieve from /home/backup then you can put /home/backup/database_name.sql to do that.

Read Comments(0)


#2002 - The server is not responding - phpmyadmin Error - Cpanel
02 6th, 2008

I have seen, lots of my customers see the 2002 phpmyadmin error while connecting from cpanel. After some small researches, i found this that, phpmyadmin by default tries to connect via tcp. And if you have query cache enabled, then for cache buffering it wont allow new tcp connections. So the best way to solve this problem is by resetting tcp connection into direct socket connection. A general Cpanel server can get fixed by following the steps written below:

Login as root and edit /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php. To do this, do the following;

1
nano /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php

Find

1
$cfg[’Servers’][$i][’socket’] = ”;

Change this settings to:

1
$cfg[’Servers’][$i][’socket’] = ‘/var/lib/mysql/mysql.sock’;

On the next line also change the following settings:

1
$cfg[’Servers’][$i][’connect_type’] = ‘tcp’;

To

1
$cfg[’Servers’][$i][’connect_type’] = ’socket’;

Have a nice reading :D and work tight :p

Read Comments(6)

© Copyright by Hoaxblog.com