Windows 10 + MySQL 5.5 installation and usage tutorial sharing
1. To install MySQL 5.5, use
. Click the MySQL installation file directly to install, but there are relatively large ones. Probability of 2502 error and 2503 error
Solution:
##1) Find the directory :C:\Windows\temp
2) Right-click on the directory----->"Properties"----->"Security "
3) In the pop-up window, click "Advanced"
4)In the pop-up window, click "Add"
##5)In the pop-up window, click "Select Subject"
6)In the pop-up window, enter every and click "Check Name", you will find "Everyone"
##9) After clicking Apply , a security warning pops up, select "Yes"
##10) Then use MySQL Installation files, there will be no 2502 errors and 2503 errors
Note: There is a pit here, even if you set up the installation If the path is elsewhere, MySQL will still be installed in the C:\Program Files path. Of course, it will have no impact on use
------- -------------------------------------------------- ---------------------------------------
2. Use the free installation of MySQL 5.5
1) Unzip the MySQL free installation file, such as Place it in D:\Java\mysql
2) Copy the my-small.ini file in the directory and name it my.ini
3) Modify the contents in my.ini
Find the [client] node, append: default-character-set = utf8
Find the [mysqld] node, append:
basedir = "D:\\Java\\MySQL"
datadir = "D: \\Java\\MySQL\\data"
##character_set_server = utf8
##collation-server = utf8_general_ci
Create a new [WinMySQLadmin] node and add: Server = D:\Java\mysql\bin\mysqld.exe
4) Append in the system variable name Path of the environment variable: D:\Java\mysql\bin;
5) In D :\Java\mysql\bin directory, execute the command (you can shift+right-click to find "Open command window here", or you can enter this directory in command line window mode): mysqld -install
This command is used to register the mysql service into the windows service. If "Service successfully installed." appears after the operation, it means that the service has been installed successfully
You can find the service through the control panel to see if there is a service named MySQL, or you can enter services.msc with win+r to directly enter the service window to see
For the corresponding uninstall service, you can execute the command: enter: mysqld -remove, prompting to uninstall the MySQL service
Similarly, the MySQL service can have a graphical interface Operate to start or close the service. You can also start the service through net start mysql in the command line window, and close the service with net stop mysql
##6) win+r input cmd to enter the command line window, enter: mysql -uroot -p and press Enter. At this time, mysql has no password by default. If "Welcome to the MySQL monitor." is displayed, it means successful login to MySQL7) Check the character set settings of the database, enter in the command line window: SHOW VARIABLES LIKE "character%"; If the displayed results are "character_set_server" and
"character_set_client" and other series of values They are all utf8, indicating that the character set is set successfully
8) Change the login password to sa, and enter in the command line window: set password for root@localhost = password( 'sa'); After logging out and logging in again, you need to enter: mysql -uroot -psa to log in successfully--------- -------------------------------------------------- -------------------------------------------------- -------------------------------------------------- --------
3. Use of MySQL client
After repeated comparisons, I personally recommend the SQLyog client. It is simple, easy to use, powerful, and has intelligent prompts
As a coder, you may not want to go back and forth with many tools Switch, myeclipse or idea have built-in database connection tools.
Here we recommend DBeaver Core, a plug-in for eclipse. The icon looks like a cute little squirrel.
Installation method: STS is used here, of course eclipse is the same
##Fill in the connection information
Choose to load the database driver jar package
Test whether the connection is successful ## You can switch to the database operation view to perform operations ##There are some Smart prompts. It’s a pity that there are not enough smart prompts at present. For example, auto_increment doesn’t prompt, so just use it. ^_^
The above is the detailed content of Windows 10 + MySQL 5.5 installation and usage tutorial sharing. For more information, please follow other related articles on the PHP Chinese website!

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

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

DeepSeek is a powerful intelligent search and analysis tool that provides two access methods: web version and official website. The web version is convenient and efficient, and can be used without installation; the official website provides comprehensive product information, download resources and support services. Whether individuals or corporate users, they can easily obtain and analyze massive data through DeepSeek to improve work efficiency, assist decision-making and promote innovation.

The way to update ByBit exchanges varies by platform and device: Mobile: Check for updates and install in the app store. Desktop Client: Check for updates in the Help menu and install automatically. Web page: You need to manually access the official website for updates. Failure to update the exchange can lead to security vulnerabilities, functional limitations, compatibility issues and reduced transaction execution efficiency.

Detailed explanation and installation guide for PiNetwork nodes This article will introduce the PiNetwork ecosystem in detail - Pi nodes, a key role in the PiNetwork ecosystem, and provide complete steps for installation and configuration. After the launch of the PiNetwork blockchain test network, Pi nodes have become an important part of many pioneers actively participating in the testing, preparing for the upcoming main network release. If you don’t know PiNetwork yet, please refer to what is Picoin? What is the price for listing? Pi usage, mining and security analysis. What is PiNetwork? The PiNetwork project started in 2019 and owns its exclusive cryptocurrency Pi Coin. The project aims to create a one that everyone can participate

One of the major changes introduced in MySQL 8.4 (the latest LTS release as of 2024) is that the "MySQL Native Password" plugin is no longer enabled by default. Further, MySQL 9.0 removes this plugin completely. This change affects PHP and other app

There are many ways to install DeepSeek, including: compile from source (for experienced developers) using precompiled packages (for Windows users) using Docker containers (for most convenient, no need to worry about compatibility) No matter which method you choose, Please read the official documents carefully and prepare them fully to avoid unnecessary trouble.

The official website entrance of the Coinsuper Exchange: https://www.coinsuper.com. The client download channels are: Windows client, macOS client, and mobile (iOS/Android). Registration requires an email, mobile phone number and password, and you need to complete real-name authentication before you can trade. The platform provides a variety of digital asset transactions, including Bitcoin, Ethereum, etc., with the transaction fee rate of 0.1% for both orders and acceptors. Security safeguards include cold wallet storage, dual-factor verification, anti-money laundering and anti-terrorism financing measures, and with security public

BITGet is a cryptocurrency exchange that provides a variety of trading services including spot trading, contract trading and derivatives. Founded in 2018, the exchange is headquartered in Singapore and is committed to providing users with a safe and reliable trading platform. BITGet offers a variety of trading pairs, including BTC/USDT, ETH/USDT and XRP/USDT. Additionally, the exchange has a reputation for security and liquidity and offers a variety of features such as premium order types, leveraged trading and 24/7 customer support.

Ouyi OKX, the world's leading digital asset exchange, has now launched an official installation package to provide a safe and convenient trading experience. The OKX installation package of Ouyi does not need to be accessed through a browser. It can directly install independent applications on the device, creating a stable and efficient trading platform for users. The installation process is simple and easy to understand. Users only need to download the latest version of the installation package and follow the prompts to complete the installation step by step.
