当前位置:网站首页>Update mysql5.6 to 5.7 under Windows
Update mysql5.6 to 5.7 under Windows
2022-06-26 10:42:00 【MervynLammm】
Upgrade steps
Backing up old databases
mysqldump -uroot -p123456 --all-databases > all_db.sqlOut of Service
net stop Mysql # Mysql Replace with the service name in the computer # Waiting to appear MySQL Service successfully stopped .Delete service
In old database
binOpen the command line in the directorymysqld --remove Mysql # Mysql Replace with the service name in the computer # Waiting to appear Service successfully removed.Unzip downloaded
zippackageModify environment variables
take 5.6 The version environment variable is changed to 5.7 edition
binCatalognewly build
my.inifile[mysql] # Set up mysql Client default character set default-character-set=utf8 [mysqld] # Set up 3306 port port = 3306 # Set up mysql Installation directory basedir=D:\Program Files\MySQL\mysql-5.7.31-winx64 # Set up mysql Database data storage directory datadir=D:\Program Files\MySQL\mysql-5.7.31-winx64\data # Maximum connections allowed max_connections=200 # The character set used by the server defaults to 8 Bit coded latin1 Character set character-set-server=utf8 # The default storage engine that will be used when creating a new table default-storage-engine=INNODB sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLESInitialize database
stay 5.7 edition
binOpen command line in directorymysqld --initialize --consoleInstallation services
mysqld installStart the service
net start mysql # MySQL Service started successfully .modify
my.inifile , Skip password verification# Add a row skip-grant-tablesRestart the service
net stop mysql # MySQL Service successfully stopped . net start mysql # MySQL Service started successfully .Get into
mysqlChange Passwordmysqluse mysql; update user set authentication_string=password("123456") where user="root"; # 123456 Replace with your new password flush privileges; quit;modify
my.inifile , Remove skip password verification# Get rid of this line skip-grant-tablesRestart the service
net stop mysql # MySQL Service successfully stopped . net start mysql # MySQL Service started successfully .Log in with the new password
mysql, Turn on remote loginmysql -uroot -p123456alter user 'root'@'localhost' identified by '123456'; # 123456 Replace with your new password use mysql; update user set host='%' where user='root'; flush privileges; quit;Restore data
mysql -uroot -p123456 < all_db.sql # The long wait began
An error is reported when exporting the database after upgrading
1577 - Cannot proceed because system tables used by Event Scheduler were found damaged at server start
solve :
mysqlcheck -uroot -p123456 --all-databases --check-upgrade --auto-repair
#123456 Password for database
mysql_upgrade -uroot -p123456
Restart after mysql service
net stop mysql
net start mysql
Reference material
边栏推荐
- MySQL 13th job - transaction management
- VS或Qt编译链接过程中出现“无法解析的外部符号”的原因:
- Index summary of blog articles -- Industrial Internet
- MySQL项目7总结
- Reasons for "unresolved external symbols" during vs or QT compilation link:
- Express (I) - easy to get started
- MySQL第十四次作业--电子商城项目
- String class intern() method and string constant pool
- Common interview questions of binary tree
- Record the handling of oom problems caused by too many threads at one time
猜你喜欢

Which PHP open source works deserve attention

MySQL job 11 - application de la vue

118. Yanghui triangle

Hcia-dhcp experiment

Under the double reduction, the amount of online education has plummeted. Share 12 interesting uses of webrtc

36 qtextedit control input multiline text

Record the handling of oom problems caused by too many threads at one time

OpenCV图像处理-灰度处理

Small example of SSM project, detailed tutorial of SSM integration

MySQL 9th job - connection Query & sub query
随机推荐
Threading model in webrtc native
MySQL第九次作业-连接查询&子查询
echo $?
Introduction to sysbench Basics
Progressive web application PWA is the future of application development
Introduction to libmagic
JVM的符号引用和直接引用是什么
Express (I) - easy to get started
Which PHP open source works deserve attention
Notes - simple but adequate series_ KVM quick start
MySQL Chapter 4 Summary
Dynamic library connection - symbol conflict - global symbol intervention
Enter a positive integer with no more than 5 digits, and output the last digit in reverse order
用同花顺手机炒股是安全的吗?如何用同花顺炒股
Function run time
Reshape a two-dimensional array with 3 rows and 3 columns to find the sum of the diagonals
Small example of SSM project, detailed tutorial of SSM integration
Basic MySQL
Linux下安装Mysql【详细】
Call API interface to generate QR code of wechat applet with different colors