在虚拟机上安装MacOS_MySQL
借元旦放假之际,琢磨着尝试下在苹果操作系统上做做开发。第一步,是把操作系统跑起来。
当然最简单的办法是买个苹果电脑,不过我作为初级玩家暂时不用;因此打算在虚拟机上安装MacOS.
搜索了网上,攻略也蛮多;不过遗憾的是竟然没有一个完完全全适合我的。
因此我把怎么做的,分享出来。
安装之前的工作
1. 安装虚拟机VMware
我的虚拟机VMwareworkstation-v9.0.1
(作为一个IT行业的从业人员,我呼吁大家用原版软件;因为我们把软件偷来偷去,连我们自己都不支持原创,其实是害的自己的行业,害的是自己。此话题在此不表。)
2. 下载MacOS,我下载的是LeoSnow.dmg,有6G,只好用迅雷下载,速度还挺快。
3. 根据网上网友经验,我下载了VMware的unlock-all-v110插件,这是为了在VMware创建虚拟机时有MacOS一项(有的网友是用另外的方法,先创建一个FreeBSD系统的虚拟机然后根据此修改为MacOS,不过我没有这么尝试。)
4. 非常重要的一点----此事差点弄得我想放弃了----是要打开CPU对VT的支持:在bios中 把 Virtual Machine Monitor设成Enable;真正让我差点崩溃的是我把bios中三个关于vitural machine的选项都选成enable,但是始终还是启动不了按照程序。当时我还以为是下载的os以及vm配合起来有问题(因此下载了darwin, Rebel EFI的数个版本,寻找MacOS的.iso版本未果等等),尝试了许久,修改了bios数次;最后在崩溃前一秒我想到是不是在bios里把项目选多了?我只选了第一项,enabile VT,保存,退出,启动虚拟机,选择iso文件为LeoSnow.dmg,成功开始安装!
安装步骤
(以下来自网友Mac_Zhong的博客http://hi.baidu.com/mac_zhong/item/b9dae4c27ed8c91b0bd93a01,由于我基本上是跟着这个步骤操作的,我就用了他的内容,不同之处,我添加了自己的注释)
1,昨天VM9 已经加过补丁(unlock-all.rar)了,所以有下面选项了,
2,硬盘是SCSI接口,CD/DVD是IDE的,去掉软驱,显卡3D加速
3,注意:打开虚拟目录下的***.vmx编辑(文本编辑),去掉firmware="efi"这一行,保存。
(ProgrammingIsStory注释:我没有删掉这行,也行)
4,加载安装10.6.6的ISO,我用的是Hazard的10.6.6i整合版(网上一搜就有)。
(ProgrammingIsStory注释:我用的不是Hazard,而是LeoSnow。其实原因是因为这个Hazard我辛苦搜索了N久,都没有找到可以下载的。SnowLeo也行。)
5,启动虚拟机,
(ProgrammingIsStory注释:此处也让我琢磨了N久,因为我一步步点下一步,发现有一步是需要安装到某个disk,但是屏幕中没有任何disk可选。此时,应该点工具栏上的分区,进入下面第6步,做一个可以安装的disk,就可以安装了;原来如此。)
6,分区
7,抹盘(格式化)
8, 安装完成
Windows+VMware+Mac OS X 10.6.6 共享文件
(此部分分享来自http://blog.csdn.net/wwwllllove/article/details/6161717)
1. 关闭虚拟系统情况下打开VMWare设置项,CD选项里加载darwin.iso
2. CD高级选项如图设置
3. 可选项中设置共享文件夹,设置如下
4. VMware tools安装,打开虚拟Mac X OS,双击桌面光盘
5. 双击安装
6. 一路看一路继续即可
7. 安装进度条
8. 安装成功
9. 重启Mac X OS后就可以通过共享文件夹共享资源了
Done!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











MySQL is an open source relational database management system. 1) Create database and tables: Use the CREATEDATABASE and CREATETABLE commands. 2) Basic operations: INSERT, UPDATE, DELETE and SELECT. 3) Advanced operations: JOIN, subquery and transaction processing. 4) Debugging skills: Check syntax, data type and permissions. 5) Optimization suggestions: Use indexes, avoid SELECT* and use transactions.

The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

InnoDB uses redologs and undologs to ensure data consistency and reliability. 1.redologs record data page modification to ensure crash recovery and transaction persistence. 2.undologs records the original data value and supports transaction rollback and MVCC.

MySQL is an open source relational database management system, mainly used to store and retrieve data quickly and reliably. Its working principle includes client requests, query resolution, execution of queries and return results. Examples of usage include creating tables, inserting and querying data, and advanced features such as JOIN operations. Common errors involve SQL syntax, data types, and permissions, and optimization suggestions include the use of indexes, optimized queries, and partitioning of tables.

MySQL's position in databases and programming is very important. It is an open source relational database management system that is widely used in various application scenarios. 1) MySQL provides efficient data storage, organization and retrieval functions, supporting Web, mobile and enterprise-level systems. 2) It uses a client-server architecture, supports multiple storage engines and index optimization. 3) Basic usages include creating tables and inserting data, and advanced usages involve multi-table JOINs and complex queries. 4) Frequently asked questions such as SQL syntax errors and performance issues can be debugged through the EXPLAIN command and slow query log. 5) Performance optimization methods include rational use of indexes, optimized query and use of caches. Best practices include using transactions and PreparedStatemen

MySQL is chosen for its performance, reliability, ease of use, and community support. 1.MySQL provides efficient data storage and retrieval functions, supporting multiple data types and advanced query operations. 2. Adopt client-server architecture and multiple storage engines to support transaction and query optimization. 3. Easy to use, supports a variety of operating systems and programming languages. 4. Have strong community support and provide rich resources and solutions.

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

MySQL index cardinality has a significant impact on query performance: 1. High cardinality index can more effectively narrow the data range and improve query efficiency; 2. Low cardinality index may lead to full table scanning and reduce query performance; 3. In joint index, high cardinality sequences should be placed in front to optimize query.
