赞
踩
https://www.python.org/downloads/
如我的python3.11.4,可以进入如下的页面进行hash校验
https://www.python.org/downloads/release/python-3114/
https://www.jetbrains.com.cn/pycharm/download/
https://dev.mysql.com/downloads/windows/installer/8.0.html
https://blog.csdn.net/YX_0719/article/details/130624633
https://blog.csdn.net/m0_37787392/article/details/124067316
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'xxx',
'USER':'root',
'PASSWORD':'123',
'PORT':3306,
'HOST':'127.0.0.1',
'CHARSET':'utf8'
}}
import pymysql
pymysql.version_info=(1,4,3,"final",0) # 指定了pymysql的版本:1.4.3,按照你版本修改
pymysql.install_as_MySQLdb()
Enter password: *********** !!!输入账号密码 !!!创建数据库 mysql> create database blog0611; Query OK, 1 row affected (0.00 sec) !!!查看数据库,已有新建 mysql> show databases; +--------------------+ | Database | +--------------------+ | blog0611 | | information_schema | | mysql | | performance_schema | | sakila | | sys | | world | +--------------------+ 7 rows in set (0.00 sec) !!!使用数据库 mysql> use blog0611; Database changed !!!查看表,现在django数据未迁移,为空 mysql> show tables; Empty set (0.00 sec)
mysql> show tables; +----------------------------+ | Tables_in_blog0611 | +----------------------------+ | auth_group | | auth_group_permissions | | auth_permission | | auth_user | | auth_user_groups | | auth_user_user_permissions | | django_admin_log | | django_content_type | | django_migrations | | django_session | +----------------------------+ 10 rows in set (0.00 sec)
你也可以用高版本的navicat连接mysql80进行管理。这里就不展示了,因为需要科学手段才能免费使用,我暂时不需要。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。