I have been messing with the Mac system recently. I was not very familiar with using Mac, so there were many problems during the installation process. For the convenience of future reference, and of course to prevent newbies like me from stepping into some pitfalls,
, so I will record these issues.
First let’s talk about the virtual machine software VMware Fusion. I downloaded the latest official version 8.5.7. Then start the installation, which is relatively easy. The most troublesome thing is how to install the WIn10 system? At first, I took a step-by-step approach and downloaded the Win10 ISO file through Safari, the browser that comes with Mac. The result is so frustrating, so slow. Later, I tried to download the ISO to my Baidu Netdisk offline through Baidu Netdisk, and then downloaded the Baidu Netdisk Mac version client. I downloaded the ISO through the client. The speed was also unstable, sometimes fast and sometimes slow. . It took 3 days to finally download it, so I couldn't wait to install it. As a result, a blue screen kept appearing, it kept restarting, and it could not be installed normally. I suspected that the ISO file might be damaged when downloaded through Baidu network disk. In order to verify this idea, I searched online and found that dual-system installation can be done through Boot Camp Assistant under Mac system. I installed it this way, and the problems that occurred were the same as under Fusion. So I am sure there is something wrong with the ISO file.
In order to download the intact ISO file, I can only use my ThinkPad to download it, and then copy the ISO file to my mobile hard drive. Then I started to plug the mobile hard drive into the Mac for installation. This time it was relatively smooth, and there was no blue screen restart problem. The system was finally installed, and I finally made progress. Then I started to install various tools under win10: Visual Studio 2013, Tortoise Git, Navicat Premuim, etc. I originally wanted to install mysql under Win10, but considering the issue of virtual machine storage space, I decided to install mysql directly under Mac. The nightmare began again.
Installing mysql itself is not complicated. Just go to the official website to download the dmg file, then double-click it, and then follow the prompts to install it. However, in order to reset the mysql root password, change it to a password you are familiar with instead of a temporary password. So the journey to reset your password begins. It is customary to search for relevant articles on Baidu. The general steps are as follows:
1. Open the preferences in the bottom dock, find mysql, and close the mysql service;
2. Enter the mysql/bin folder, obtain administrator rights, and disable the verification function of mysql. Enter in the terminal:
cd /usr/local/mysql/bin/
## sudo su
service is started.
3.Set a new password and enter it in the terminal (still in the mysql/bin folder just now):
## . root'@'localhost' = PASSWORD('The string corresponding to your new password');
After completing the above steps, restart mysql and you can log in normally with the modified password. But I want to connect to mysql on the host through Navicat in the virtual machine. I try to configure the connection information of mysql, and then click the "Test Connection" button. "ERROR 1130: Host 192.168.3.100 is not allowed to connect to this MySQL" pops up. server" prompt. This query was caused by mysql not authorizing other clients to connect. Later, it was set through the authorization method:
If you want to allow the user myuser to connect to the mysql server from the host with ip 192.168.1.3, And use mypassword as password
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'192.168.0.1' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
The above is the general solution. By the way, another troublesome thing is that in win10 under Fusion, it is best to adjust the network connection to a non-shared mode. I changed it to Wi-Fi, so win10 The IP and the IP of the mac host are in the same network segment, so there is no problem in connecting to mysql. Otherwise, it will be more troublesome and you have to use Bridge or NAT forwarding to connect successfully.
The above is the detailed content of Introduction to VMware Fusion virtual machine software. For more information, please follow other related articles on the PHP Chinese website!
Explain the role of InnoDB redo logs and undo logs.Apr 15, 2025 am 12:16 AMInnoDB 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.
What are the key metrics to look for in an EXPLAIN output (type, key, rows, Extra)?Apr 15, 2025 am 12:15 AMKey metrics for EXPLAIN commands include type, key, rows, and Extra. 1) The type reflects the access type of the query. The higher the value, the higher the efficiency, such as const is better than ALL. 2) The key displays the index used, and NULL indicates no index. 3) rows estimates the number of scanned rows, affecting query performance. 4) Extra provides additional information, such as Usingfilesort prompts that it needs to be optimized.
What is the Using temporary status in EXPLAIN and how to avoid it?Apr 15, 2025 am 12:14 AMUsingtemporary indicates that the need to create temporary tables in MySQL queries, which are commonly found in ORDERBY using DISTINCT, GROUPBY, or non-indexed columns. You can avoid the occurrence of indexes and rewrite queries and improve query performance. Specifically, when Usingtemporary appears in EXPLAIN output, it means that MySQL needs to create temporary tables to handle queries. This usually occurs when: 1) deduplication or grouping when using DISTINCT or GROUPBY; 2) sort when ORDERBY contains non-index columns; 3) use complex subquery or join operations. Optimization methods include: 1) ORDERBY and GROUPB
Describe the different SQL transaction isolation levels (Read Uncommitted, Read Committed, Repeatable Read, Serializable) and their implications in MySQL/InnoDB.Apr 15, 2025 am 12:11 AMMySQL/InnoDB supports four transaction isolation levels: ReadUncommitted, ReadCommitted, RepeatableRead and Serializable. 1.ReadUncommitted allows reading of uncommitted data, which may cause dirty reading. 2. ReadCommitted avoids dirty reading, but non-repeatable reading may occur. 3.RepeatableRead is the default level, avoiding dirty reading and non-repeatable reading, but phantom reading may occur. 4. Serializable avoids all concurrency problems but reduces concurrency. Choosing the appropriate isolation level requires balancing data consistency and performance requirements.
MySQL vs. Other Databases: Comparing the OptionsApr 15, 2025 am 12:08 AMMySQL is suitable for web applications and content management systems and is popular for its open source, high performance and ease of use. 1) Compared with PostgreSQL, MySQL performs better in simple queries and high concurrent read operations. 2) Compared with Oracle, MySQL is more popular among small and medium-sized enterprises because of its open source and low cost. 3) Compared with Microsoft SQL Server, MySQL is more suitable for cross-platform applications. 4) Unlike MongoDB, MySQL is more suitable for structured data and transaction processing.
How does MySQL index cardinality affect query performance?Apr 14, 2025 am 12:18 AMMySQL 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.
MySQL: Resources and Tutorials for New UsersApr 14, 2025 am 12:16 AMThe MySQL learning path includes basic knowledge, core concepts, usage examples, and optimization techniques. 1) Understand basic concepts such as tables, rows, columns, and SQL queries. 2) Learn the definition, working principles and advantages of MySQL. 3) Master basic CRUD operations and advanced usage, such as indexes and stored procedures. 4) Familiar with common error debugging and performance optimization suggestions, such as rational use of indexes and optimization queries. Through these steps, you will have a full grasp of the use and optimization of MySQL.
Real-World MySQL: Examples and Use CasesApr 14, 2025 am 12:15 AMMySQL's real-world applications include basic database design and complex query optimization. 1) Basic usage: used to store and manage user data, such as inserting, querying, updating and deleting user information. 2) Advanced usage: Handle complex business logic, such as order and inventory management of e-commerce platforms. 3) Performance optimization: Improve performance by rationally using indexes, partition tables and query caches.


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

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

Atom editor mac version download
The most popular open source editor

Dreamweaver CS6
Visual web development tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function






