简体   繁体   English

将mysql 32bit更新为64bit

[英]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。

  1. Backup the 32 bit database. 备份32位数据库。
  2. Extract the zip distro, not self-installer, for your 64 bit OS (from dev.mysql.com or contract-supplier) to new install directory. 将您的64位操作系统(来自dev.mysql.com或合同供应商)的zip发行版(而非自安装程序)解压缩到新的安装目录。
  3. Make a copy of existing 32 bit service's .ini file. 复制现有32位服务的.ini文件。 Edit it so the port, basedir, datadir, etc are referencing the new, unused values. 编辑它,以便端口,basedir,datadir等引用新的未使用的值。
  4. Restore 32bit backup using 64 bit software - to New datadir. 使用64位软件还原32位备份-到New datadir。
  5. Run the 64bit upgrade command (from the shell) to check table integrity and run schema upgrades. 运行64bit upgrade命令(从外壳程序)以检查表完整性并运行模式升级。
  6. Startup 64bit service. 启动64位服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MySQL ODBC连接器32位还是64位? - MySQL ODBC connector 32bit or 64bit? 最好在基于64位Intel的Mac(Perl / Python用户)上安装MySQL 32位或64位吗? - Better to install MySQL 32bit or 64bit on my 64bit Intel-based Mac (Perl/Python user)? 可以将MySQL 32位数据库导入/复制到64位MySQL吗? - Can a MySQL 32bit database be imported/copied to a 64bit MySQL? 从Linux 64位到Windows 32位的MySql-查询速度慢? - MySql from Linux 64bit to Windows 32Bit - Slow queries? 在WAMP 64位上将64位PHP转换为32位 - Convert 64bit PHP to 32bit on WAMP 64bit mysql 32bit 还是 mysql 64bit 哪一个? - Which one to choose mysql 32bit or mysql 64 bit? 在 Windows10 64 位机器上将 MySQL ODBC 连接到 VBScript 中的 32 位的正确方法是什么? - What is the correct way to connect MySQL ODBC to a 32bit in VBScript on machine Windows10 64bit? 使用PDO将整数从64位转换为32位 - Integers being converted from 64bit to 32bit with PDO 在64位OS内存消耗上运行的32位程序 - 32bit program running on 64bit OS Memory Consumption 当使用32位版本的MySQL的.net连接器连接到64位版本的MySQL时,我得到“等待表元数据锁定” - When using 32bit version of MySQL's .net connector to connect to a 64bit version of MySQL I get “ Waiting for table metadata lock ”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM