User Bar
IP:
18.119.118.169
Time:
-
Sign UP
Login
Feedback
See more sites from My-Addr
Articles
Network Tools
Articles Index
# proxy anonymity
# what is an anonymous proxy
# proxy classes for begginers
# features of proxy
# what is HTTP proxy server
# how to detect your IP throw proxy
# sending/receiving e-mail through proxy
# FTP through a proxy server: problems and solutions
# Mandriva updates, retrieving failed: wget failed: exited with 1
# "Your password will expire in 15 days",how to disable or change
# How to move the mysql datadir, Ubuntu change datadir issue
# Linux Ubuntu move mysql database to other path in 5 minutes
# Mandriva change mysql datadir, mysql database location path
# How to disable flash plugin firefox on linux
Linux Mandrake/Mandriva change mysql datadir, mysql database location path
Linux Mandriva change mysql datadir / database location dir in 5 minutes
Move mysql database to other path or disk
Open the
terminal
Stop MySQL with the command
/etc/init.d/mysqld stop
Way 1
Move existing data directory (which is located in
/var/lib/mysql
) to new dir
/usr/new_datadir
using the command
mv /var/lib/mysql /usr/new_datadir
Create symlink from new dir to old one
ln -s /usr/new_datadir /var/lib/mysql
Way 2
Move existing data directory (which is located in
/var/lib/mysql
) to new dir
/usr/new_datadir
using the command
mv /var/lib/mysql /usr/new_datadir
Edit the MySQL configuration file with the command
vim /etc/mysql/my.cnf
Find the entry for
datadir
, change the path to the new data directory.
Final
Restart MySQL with the command
/etc/init.d/mysqld restart
MySQL should now start without any errors, have fun! In my case i have Mandriva 2008 Spring Edition, and all going perfectly with moving and symlink.