当前位置:网站首页>[mysql] install multiple MySQL versions on one Windows computer
[mysql] install multiple MySQL versions on one Windows computer
2022-06-22 17:12:00 【Seven days at night】
[MYSQL] a windows Multiple computers are installed mysql- Different versions
install mysql The following points need to be noted :
Port conflicts ;
stay InnoDB There was a problem trying to initialize its tablespace or log file , Please delete from InnoDB: all ibdata Documents and all ib_logfile All files created file . If you have created some InnoDB surface , Also from MySQL Delete... From the database directory .frm The corresponding documents of these tables ,.ibd If you are using multiple tablespaces , Then delete all file . then InnoDB Try it again Create database ( The official website says );
Multiple mysql In the registry ,\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySQL* Below the path ImagePath Properties of the mysqld Path and my.ini Path .
The above three problems should be paid attention to during installation .
install mysql Steps are as follows :
download mysql Installation free package , Official website address ;
Will download mysql The installation package is decompressed , stay 5.7 Above version , The extracted root directory file does not contain any my.ini The file ; You can copy it from the Internet or other places ; Or create one yourself ;
Provide a pure version my.ini The contents of the document :
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[mysqld]
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
When using the pure version above , Remember more than one MYSQL Remember to set different port value , for example :3306、3316 etc. .
If in my.ini Set up in innodb_data_home_dir Catalog , Remember to create your own , Otherwise, when the service is started later ,
The initialization program will not help you to create , Otherwise, an error will be reported .
- Execute initialization command (cmd Get into mysql root directory \bin ):
mysqld --initialize-insecure --console # hinder console Print the initialization contents on the console
- Delete InnerDB Generated file ; Generally in mysql root directory \data Will generate ib_logfile0、ib_logfile1、ibdata1 file , Just delete it ; If you are in the my.ini Set up in innodb_data_home_dir Catalog ,ibdata1 The file is generated and then set by you innodb_data_home_dir Directory .
- Execute the registration service statement (cmd Get into mysql root directory \bin ):
mysqld install mysql* --defaults-file="mysql root directory \my.ini" # Register service command
mysqld -remove mysql* # Uninstall service command
Will prompt :Service successfully installed.
- Make registry address changes :
Open the registry , Get into \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySQL* ; find ImagePath attribute ; Right click to modify ; View the numerical data ,mysql Whether the directory is your installation directory , first mysql No problem with the catalog ; Subsequent installations will only think of the first installation mysql Catalog , So it's changed to :mysql root directory \bin\mysqld --defaults-file=mysql root directory \my.ini MySQL* ; - Start the service :
net start mysql* # Service start command
net stop mysql* # Service stop command
If you need to initialize the password , You can enter the initialization command in the console above when logging in ;
Or in my.ini Set up skip-grant-tables ( Remember to set this property before executing the initialization command ), In this way, the initial password is empty .
边栏推荐
- 调用cmd 进程通信
- Service or mapper cannot be injected into a multithread
- CMB model 23 ukey is not recognized on win7
- WPF效果第一百九十篇之再耍ListBox
- You call this crap high availability?
- 代码扫描工具扫出的 Arrays.asList 使用BUG
- [MYSQL]一台windows电脑安装多个mysql-不同版本
- 每秒處理10萬高並發訂單的樂視集團支付系統架構分享
- Scala for derivation: the ability to define a value in the first part of a for expression and use it in subsequent (outer) expressions
- Spark on data skew
猜你喜欢

关于#数据库#的问题,如何解决?

快速掌握 ASP.NET 身份认证框架 Identity - 用户注册

以小见大:一个领域建模的简单示例,理解“领域驱动”。

MySQL master-slave connection prompt of docker: communications link failure

A new mode of enterprise software development: low code

Figure operation flow of HAMA BSP Model

来厦门了!线上交流限额免费报名中

What should I do if I can't hear a sound during a video conference?

Hello Playwright:(7)模拟键盘和鼠标

Xftp 7(FTP/SFTP客户端) V7.0.0107 官方中文免费正式版(附文件+安装教程)
随机推荐
Spark on data skew
Linux system maintenance: mysql8.0.13 source code download and installation "fool" operation steps (Linux centos6.8) test available series
Review the executor from the perspective of application submission
0基础如何入门软件测试,能转行成功吗?
Qt筆記-QMap自定義鍵(key)
High availability ResourceManager
快速掌握 ASP.NET 身份认证框架 Identity - 登录与登出
QT notes qmap user defined key
WPF 实现星空效果
CMB model 23 ukey is not recognized on win7
Docker 之MySQL 重启,提示Error response from daemon: driver failed programming external connectivity on **
scala-for推导:能够在for表达式中的最初部分定义值,并在(外面)后面的表达式中使用该值
Purchase guide - how to purchase a high-quality conference tablet, these aspects must be compared
Database mysql master-slave scheme
[MYSQL]一台windows电脑安装多个mysql-不同版本
Quartus Prime 18.0软件安装包和安装教程
spark Executor执行结果的处理源码
关于#数据库#的问题,如何解决?
调用cmd 进程通信
mysql服务器启动后自动停止