栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

【学习记录】新境配置时出现的一些问题

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

【学习记录】新境配置时出现的一些问题


文章目录
  • 前言
  • 一、anaconda设置清华源
  • 二、pip设置清华源
  • 三、powershell禁止执行脚本解决
  • 四、MySQL使用
    • MySQL初始化和修改初始密码
    • Navicat for MySQL链接出现1251错误问题解决
  • 总结

前言

新手上路

一、anaconda设置清华源

代码如下:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ 
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ 
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ 
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/peterjc123/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
二、pip设置清华源

代码如下:

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
三、powershell禁止执行脚本解决

以管理员身份打开powershell执行下面代码:

set-ExecutionPolicy RemoteSigned
四、MySQL使用 MySQL初始化和修改初始密码

cd到数据库bin目录执行下面代码:

mysqld --initialize --console

记住root@localhost:初始密码
继续执行:

mysqld install
net start mysql

到这里数据库初始化完成,现在修改默认密码
首先登录数据库:

mysql -u root -p

然后输入上面的初始密码
再输入下面代码修改密码:

set password for root@localhost = password('123'); 
Navicat for MySQL链接出现1251错误问题解决

Navicat for MySQL 连接 Mysql 8.0.11 出现1251- Client does not support authentication protocol 错误
先登录数据库 mysql -u root -p
再使用下面代码把mysql用户登录密码还原成mysql_native_password:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '自定义的密码';
总结

新手上路必备

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/876598.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号