The mysql versions might be too different.
Hi,
I need some help with using MySQL databases from Knoppix CD. There were some problems with my linux box because of which it has become unbootable. I am trying to salvage the data (some html/php files and MySQL databases). I can boot using Knoppix CD and can access all my data on hda3 after mounting it. I can even start mysqld both from /mnt/hda3/etc/init.d/ as well as /etc/init.d/. The problem is that both instances read only the databases in /var/lib while my databases are on /mnt/hda3/var/lib. If I do chroot, mysqld won't even start. If I move my database files into /var/lib/mysql from /mnt/hda3/var/lib/mysql, mysqld dies as soon as I start it. I tried changing the datadir in my.cnf but it didn't help.
All I want to do is backup (mysqldump) a couple of databases and move them over to a new host.
Could someone please help me out?
Thanks!
The mysql versions might be too different.
Could try something like this as rootOriginally Posted by sbb
rm -rf /var/lib/mysql
cp -rp /mnt/hda3/var/lib/mysql /var/lib
mysqld_safe &
then
# Back up data to USB device.
modprobe usb-storage
mkdir /mnt/usbstore
mount -t vfat /dev/sda1 /mnt/usbstore
mysqldump --opt -u root databasename > /mnt/usbstore/databasename.sql
umount /mnt/usbstore
Regards Mark
There are many ways of doing this:Originally Posted by sbb
a. The most obvious one is to copy the files from one server to the other
b. If you still want to do a mysqlump, there is a command line option to set the configuration file to use. In that configuratio file you can specify where the data files are
c. Make sure that the mysql.socket file is pointing to a rw location (that might have been your problem when it didn't start).
d. Start the MySQL server in 'console' mode.
Most of the time you should use a mysqld_safe script that does some housekeeping for you just in case. You can check all these options by using mysqld --help, the text will be version specific.
Check http://dev.mysql.com/doc/mysql/en/Up...g-to-arch.html for some information in how copy databases between servers.
Check http://dev.mysql.com/doc/mysql/en/Starting_server.html as a starting point to troubleshooting.
The datafiles are backward and forward compatible, checkThe mysql versions might be too different.
--GN

Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS
$179.98
Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00
Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS
$127.54
Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor
$50.00
Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS
$84.49
Intel Xeon E5-2690 v4 SR2N2 14 Core 2.6GHz 35MB LGA2011-3 CPU *km
$15.99
Intel Xeon Platinum 8268 2.9GHz 24-Core FCLGA3647 Processor | SRF95
$119.99
Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU
$7.95
For Parts - Lenovo ThinkServer TS460 Part Number: 70TT-0020UX
$149.99
Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS
$239.99