天宫鹤

上一页 1 ··· 4 5 6 7 8 9 下一页

2022年8月21日

阿里云服务器ECS安装MySQL数据库、初始化密码修改,远程访问权限设置、开放服务器3306端口,实现服务器MySQL数据库远程连接

摘要: 1.修改配置文件/etc/my.cnf,在[mysqld]下面添加一行代码:skip-grant-tables 2.service mysqld restart 3.mysql -uroot -p //此时直接回车,既可以进入数据库。 4.进数据库后,use mysql; //选择mysql这个库, 阅读全文

posted @ 2022-08-21 11:34 GoGrid 阅读(523) 评论(0) 推荐(0) 编辑

2022年8月14日

使用LOAD_FILE()函数在MySQL数据库中插入BLOB字段的正确方法

摘要: 1.检查文件存不存在。 SELECT LOAD_FILE('C:/ProgramData/MySQL/MySQL Server 8.0/Uploads/pic/11.jpg') AS RESULT; 2.检查文件大小是否小于允许的最大字节。 show variables like 'max_allo 阅读全文

posted @ 2022-08-14 10:18 GoGrid 阅读(780) 评论(0) 推荐(0) 编辑

2022年8月13日

四步完美实现Qt6.3.1连接MySQL数据库(QT6.3.1加载Mysql驱动失败的解决方法QSqlDatabase: QMYSQL driver not loaded)

摘要: 1.编译MySQL驱动,生成“qsqlmysql.dll”和“qsqlmysql.dll.debug”。 2.将MySQL安装目录下lib文件夹里的** libmysql.dll**文件复制到下面的路径: D:\Qt\6.3.1\mingw_64\bin 3.将第一步生成的两个文件拷贝到下面的路径: 阅读全文

posted @ 2022-08-13 23:59 GoGrid 阅读(1010) 评论(0) 推荐(0) 编辑

2022年8月8日

QtCreator常用快捷键

摘要: 项目相关 打开项目 Ctrl +O 新建项目 Ctrl +N 代码编辑相关 向上、下复制一行 Ctrl + Alt + arrowUp 或 arrowDown 将本行挪到上、下一行 Ctrl + Shift + arrowUp 或 arrowDown 全局重命名 Ctrl + Shift + R 变 阅读全文

posted @ 2022-08-08 20:09 GoGrid 阅读(938) 评论(0) 推荐(0) 编辑

2022年8月5日

Qt之TCP编程中 socketDescriptor类型必须为qintptr!!!

摘要: QTcpServer之虚函数必须为:protected: void incomingConnection(qintptr socketDescriptor);不能为:protected: void incomingConnection(int socketDescriptor); 阅读全文

posted @ 2022-08-05 20:05 GoGrid 阅读(304) 评论(0) 推荐(0) 编辑

2022年8月4日

Qtcreator中printf()/fprintf()不显示问题处理方法

摘要: 【问题】 使用Qtcreator开发项目中,printf()的诊断信息,在“应用程序输出”窗口不显示。【解决方法】 添加语句:fflush( stdout);或者fflush(stderr);【原因分析】 标准输出( stdout)和标准错误输出(stderr)均有缓存,缓存达到一定程度后,方才输出 阅读全文

posted @ 2022-08-04 19:54 GoGrid 阅读(546) 评论(0) 推荐(0) 编辑

2022年6月16日

Android Studio解决Duplicate class 开头的报错内容全过程

摘要: 1.问题 Duplicate class org.intellij.lang.annotations.Identifier found in modules annotations-12.0 (com.intellij:annotations:12.0) and annotations-13.0 ( 阅读全文

posted @ 2022-06-16 17:31 GoGrid 阅读(1532) 评论(0) 推荐(0) 编辑

2022年5月26日

开发Jetpack Compose应用,解决Android Studio配置完Kotlin下载慢的问题

摘要: 修改项目(而非模块)build.gradle文件,如下: buildscript { ext { compose_version = '1.1.1' kotlin_version = '1.6.21' } repositories { // 以下四行添加阿里云的仓库地址,方便国内开发者下载相关插件 阅读全文

posted @ 2022-05-26 19:15 GoGrid 阅读(681) 评论(0) 推荐(0) 编辑

2022年4月29日

Kotlin反射需要单独添加JAR文件(kotlin-reflect.jar)

摘要: 使用Kotlin的反射API需要在CLASSPATH环境变量中添加单独的JAR文件:kotlin-reflect.jar,这样可以方便程序在不使用反射时减小运行库的大小。 阅读全文

posted @ 2022-04-29 20:55 GoGrid 阅读(335) 评论(0) 推荐(1) 编辑

2022年3月29日

EditPlus中编译运行Kotlin程序(*.kt)

摘要: 1.编译Kotlin程序 2.运行Kotlin程序 阅读全文

posted @ 2022-03-29 20:14 GoGrid 阅读(47) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 下一页

导航