windows安装mysql

  1. 版本路径:https://dev.mysql.com/downloads/file/?id=485812
  2. 安装
    *以管理员身份打开命令行:
    下转到mysql的bin目录下:cd D:\mysql-8.0.16-winx64\bin
    在bin下执行安装mysql:mysqld --install
    初始化mysql:mysqld --initialize --console(root@localhost: ****** 此为密码)
    启动服务:net start mysql
    登录mysql:mysql -uroot --p
    重置密码:alter user 'root'@'localhost' identified by '123456';
    3.问题
    navcat无法连接mysql8
    解决方法:alter user 'root'@'localhost' identified with mysql_native_password by '123456';

建表报错:
问题:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with
sql_mode=only_full_group_by
解决方法:
set sql_mode='NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES';

posted @ 2021-04-15 10:49  雨曼晴川  阅读(34)  评论(0编辑  收藏  举报