MySQL
How to move your MySQL database directory
Submitted by TimBruce on Tue, 2009-10-06 16:25If you have a dedicated database server and the partition with the MySQL database fills up (or starts getting low), you can move your MySQL databases to a different location.
Let’s say you want to move the database to /home/mysql
MySQL Bind Address
Submitted by TimBruce on Mon, 2009-08-17 17:12There are times when you need MySQL to be able to bind to more than one address. In this particular occasion, I was running Nagios locally on the same system as Drupal, my content management system.
MySQL Password
Submitted by TimBruce on Tue, 2007-03-13 15:23There are a variety of ways to change your MySQL password. One of the easiest is from the command line. You can use a command like:
mysqladmin -u root password yourrootsqlpassword
to change your password. The above command changes the password of the acount root to yourrootsqlpassword.
MySQL Information
Submitted by TimBruce on Thu, 2006-04-13 22:54MySQL is a free database available from My SQL AB (www.mysql.com). This database is a fully relational database environment and there are several tools available to help you manage the database.
User Management
Backing up a MySQL Database
Submitted by TimBruce on Tue, 2006-03-14 22:20This article only covers backing up from the Command Linux (i.e., the shell, usually bash or korn (ksh) shells).
If you wanted to back up the database timsdata, you would simply use a command like:
mysqldump -c -u tim -p timsdata > timsdata.sql
This would create a file called timsdata.sql in the current directory. You should be aware that where I've entered the name tim in italics, you should specify another authorized user for the database.
