一,phpstudy升级mysql到mysql8(新的phpstudy8已经是mysql8了) 1,下载mysql8 2,将原来的mysql文件夹重命名,并执行 mysqld --remove 3,将新的mysql8放进去并命名MySQL 4,编辑my.ini,如下供借鉴 # power by php中文网 2017 www.php.cn 官网下载最新版 [client] port=3306 [mysql] default-character-set=utf8 [mysqld] port=3306 basedir="D:/apps/phpstudy2018/PHPTutorial/MySQL/" datadir="D:/apps/phpstudy2018/PHPTutorial/MySQL/data/" character-set-server=utf8 default-storage-engine=INNODB default_authentication_plugin=mysql_native_password sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES character-set-server = utf8mb4 performance_schema_max_table_instances = 600 table