随笔分类 -  数据库

摘要:1,设置变量innodb_large_prefix innodb_file_format SET GLOBAL innodb_large_prefix = ON;SET GLOBAL innodb_file_format=Barracuda; 阅读全文
posted @ 2021-02-10 15:40 TesterLiao 阅读(177) 评论(0) 推荐(0)
摘要:1,用navicat导出需要生成数据库文档的sql文件; 2,克隆项目,地址:https://github.com/2liang/AutoBuildDocFromDB 3,在python2.7环境下,在项目目录下运行: python build.py sql_dir 其中sql_dir为sql文件路 阅读全文
posted @ 2020-03-16 11:52 TesterLiao 阅读(1351) 评论(0) 推荐(0)
摘要:1,guest/settings.py中加上 安装好pymysql 2,guest/settings.py的DATABASES设置参数如下, 3,出现问题清单 ImproperlyConfigured: mysqlclient 1.3.13 or newer is required1、问题背景:已经 阅读全文
posted @ 2019-09-02 19:05 TesterLiao 阅读(353) 评论(0) 推荐(0)
摘要:用xshell連接上vps 1,下载mysql的repo源 2,安裝mysql 3,登錄mysql 然後輸入密碼,可能會出現報錯:Access denied for user 'root'@'localhost' (using password: YES) 解決方法——參考我另一篇文章https:/ 阅读全文
posted @ 2019-09-01 22:46 TesterLiao 阅读(176) 评论(0) 推荐(0)
摘要:测试一般各种查询语句用的较多,下面的查询语句都是需要熟悉的 Course表 Score表 Student表 Teacher表 1,查询课程编号为“02”的总成绩 SELECT * FROM `Score` where c_id=02; 2,查询课程编号为“01”的课程比“02”的课程成绩高的所有学生 阅读全文
posted @ 2018-12-11 22:49 TesterLiao 阅读(1173) 评论(0) 推荐(0)
摘要:需要配置mysql5.6版本的my.cnf文件,我的my.cnf文件配置如下: port=3306是我后来自己加上的。加上这个之后重启mysql service mysqld restart 记得给root用户开启远程链接权限: 进入mysql之后use mysql grant all privil 阅读全文
posted @ 2018-12-02 00:01 TesterLiao 阅读(3024) 评论(0) 推荐(0)