Life of a Plesk Admin

Where i go for Geek

Main menu

Skip to primary content
Skip to secondary content
  • unix / linux
  • plesk
  • svn
  • mysql
  • apache
  • .htaccess
  • amazon
  • php
  • networking

Category Archives: mysql

Enable connecting remotely to mysql database on CentOS

Posted on October 4, 2011 by admin

Edit file:

/etc/my.cnf

Comment out line:

skip-networking

So should look like this:

#skip-networking

Restart MySQL

/etc/init.d/mysqld restart

Posted in mysql

How to Find & Replace Data in MySQL

Posted on July 17, 2011 by admin

To find a string in a certain field and replace it with another string:

update [table_name] set [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]');

Source: http://www.mediacollege.com/computer/database/mysql/find-replace.html

Posted in mysql

To start/stop mysql server on a linux machine

Posted on January 23, 2011 by admin

To start mysql server:

/etc/init.d/mysqld start

To stop mysql server:

/etc/init.d/mysqld stop

To restart mysql server

 /etc/init.d/mysqld restart

Source: http://theos.in/desktop-linux/tip-that-matters/how-do-i-restart-mysql-server/

Posted in mysql

Allow external connections to MySQL server on Plesk

Posted on May 27, 2010 by admin

Comment out “skip-networking parameter” in /etc/my.cnf

Posted in mysql

MySQL root can be viewed with

Posted on November 24, 2009 by admin
cat ~mysql/.my.cnf

Posted in mysql

Load a mysql database dump via command line

Posted on April 17, 2009 by admin

Run this command on the command line to load a mysql database dump file

mysql -u yourusername -p -h localhost databasename < data.sql

Posted in mysql

How to dump a mysql database via command line

Posted on April 17, 2009 by admin

Run this command to dump a database via command line

mysqldump –u yourusername –p yourdatabasename > yourdumpfile.sql

Posted in mysql

Show some love

Recent Posts

  • How Do I Display the Contents of a Linux File?
  • Enable connecting remotely to mysql database on CentOS
  • Start svn server
  • How to setup a Proxy Server using Hamachi and Privoxy
  • How to Find & Replace Data in MySQL

Archives

  • January 2012
  • October 2011
  • July 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • November 2010
  • September 2010
  • July 2010
  • May 2010
  • March 2010
  • February 2010
  • December 2009
  • November 2009
  • October 2009
  • May 2009
  • April 2009

Contact Me

Thank you for your interest! We will contact you shortly.

Proudly powered by WordPress