[英]Update mysql 32bit to 64bit
I have like 10 biiiiiiiiiiiiiig mysql datebases and I have mysql 32bit, It can only use 3gb of ram memory... I need more so I need to update the mysql to 64 bit (the server has 32gb of ram memory). 我有10个biiiiiiiiiiigig mysql datebases,我有mysql 32bit,它只能使用3gb的ram内存...我需要更多,所以我需要将mysql更新为64位(服务器有32gb的ram内存)。 How can I update it without loosing data.
如何在不丢失数据的情况下进行更新。
I prefer not to make a backup and reupload it because the datebases are very very big... Is there any alternative? 我不希望备份并重新上传它,因为日期库很大...还有其他选择吗?
The OS is centos 5.8 操作系统是centos 5.8
If you have your data in a separate partition, just dont format the partition. 如果您的数据位于单独的分区中,请不要格式化该分区。 You can upgrade your OS and your mysql to 64 bit.
您可以将操作系统和mysql升级到64位。 then just point your mysql to your data partition.
然后只需将mysql指向数据分区即可。
The internal format of the MySQL database and files does not change based on architecture, but may change slightly depending on MySQL version. MySQL数据库和文件的内部格式不会根据体系结构而更改,但是可能会根据MySQL版本的不同而稍有变化。 You'll want to switch your OS to 64-bit, update to MySQL 5.6 if you're going through all this trouble.
如果您要解决所有这些麻烦,则需要将操作系统切换到64位,并更新到MySQL 5.6。
You must make a backup of your data. 您必须备份数据。 You won't necessarily need to restore from it, but you cannot just slap on an new OS and assume it'll work out fine.
您不一定需要从中还原,但是您不能只是在新操作系统上打耳光,并认为它可以正常工作。
If your databases are on a separate partition or volume on your system you should be okay to install the OS on the main system partition, reformat that accordingly. 如果数据库位于系统上的单独分区或卷上,则可以将OS安装在主系统分区上,并进行相应的格式化。 Be very careful you don't re-initialize the drive by accident.
请务必小心,不要意外重新初始化驱动器。 Once again, this is why backups are essential.
再次,这就是为什么备份必不可少的原因。
You also don't define what "big" is. 您也没有定义“大”是什么。 For some people that means "a few GB".
对于某些人来说,这意味着“几个GB”。 The database engine also matters.
数据库引擎也很重要。 You should be using InnoDB.
您应该使用InnoDB。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.