Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Case Analysis of phpStudy2016 mysql5.5 upgrading mysql8

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

PhpStudy2016 mysql5.5 upgrade mysql8 case analysis, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

Download mysql

2. Check whether mysql is in the windows environment variable path. If not, add D:\ phpStudy\ MySQL\ bin to the environment variable.

How to restart and set path to take effect. Please refer to https://my.oschina.net/u/1422143/blog/3227656

3. Backup the old mysql5.5

Note: mysql service needs to be uninstalled before replication

1. Uninstall MySQL service

Mysqld remove

2. Uninstall MySQLa service

3. Extract the downloaded mysql8 to the mysql directory

4. Install the service of mysql8

1) initialize and output the password generated by default

Mysqld-initialize-console

2) install mysql8 service

Mysqld install

3) install the MySQLa service of phpStudy

Create D:\ phpStudy\ MySQL\ my.ini

[mysql] default-character-set= UTF8 [mysqld] port=3306default_authentication_plugin=mysql_native_passwordbasedir=D:/phpStudy/MySQL/datadir=D:/phpStudy/MySQL/data/character-set-server=utf8default-storage-engine=InnoDBcollation-server=utf8_unicode_ciinit_connect='SET NAMES utf8'innodb_buffer_pool_size=64Minnodb_flush_log_at_trx_commit=1innodb_lock_wait_timeout=120innodb_log_buffer_size=4Minnodb_log_file_size=256Minteractive_timeout=120join_buffer_size=2Mkey_buffer_size=32Mlog-error= "D:/phpStudy/MySQL/data" log_error_verbosity=1max_ Allowed_packet=16Mmax_connections=1000max_heap_table_size=64Mmyisam_max_sort_file_size=64Gmyisam_sort_buffer_size=32Mread_buffer_size=512kbread_rnd_buffer_size=4Mserver_id=1skip-external-locking=onsort_buffer_size=256kbtable_open_cache=256thread_cache_size=16tmp_table_size=64Mwait_timeout=120sql-mode= "STRICT_TRANS_TABLES ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION,ONLY_FULL_GROUP_BY "[client] port=3306default-character-set=utf8

5. Reset the mysql password

Open mysql

Alter user 'root'@'localhost' identified with mysql_native_password by' root'

Exit exits, reconnect and start

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report