Web Hosting Talk







View Full Version : is it possible to change partition size...


Fujiwara Takumi
03-06-2003, 04:25 AM
without losing data?

Redhat 8.0, a single IDE drive.

hololi
03-06-2003, 05:14 AM
short answer is yes

be very careful as it could mess up your existing partitions.

i'd do a backup if possible first.

the utility in linux to do it is sfdisk of fdisk

google will give you loads of info on this
good luck

BTW : saw a similar question on this forum a few days a search here should find it.
hololi

rigor
03-06-2003, 03:57 PM
definitely go in with the assumption that if you lose all the disk, you got a game plan ;) I fear filesystems, best to newfs them, use them, and junk them when they get too messed up.

linux is very unforgiving o/s when it comes to corrupted f/s' (as are many other unices)

Fujiwara Takumi
03-06-2003, 04:24 PM
well how about this.

where is MySQL generally stored?
How can i move it?

I think if i can move it off the main partition, (its the main partition im sweating right now), that will allow for more growth and i wont have to worry till i have a better plan.

serial
03-06-2003, 04:27 PM
The location of MySQL databases depends on where you wanted them stored when you configured MySQL. The default on Linux should be: /var/lib/mysql/*

If / is almost full, you can always shutdown MySQL, move the databases to a more spacious partition, create a symlink and then start MySQL back up.

pyoor
03-06-2003, 04:28 PM
Just backup your databases w/ mysqldump then .tar.gz the .sql files and ftp 'em to a remote server.

man mysqldump

Alternatively you can use a program like MySQL Front which has a pretty gui for you to click around in... search google for it... version 2.5 is the latest I believe.

---www.sekure.us---

Fujiwara Takumi
03-06-2003, 04:35 PM
i already use php myadmin, is it much different?

on a related issue, ive been trying to backup information with SSH, but it continually asks me to overwrite files and so it becomes a very tedious process. is there a better way to do tihs rather than just trying to straight copy them? im using the client available at ssh.com and ive got it set to "not prompt me to overwrite files"

is there a better client, or better method?