MySQL开放远程连接权限

摘要: 创建一个新的 MySQL 用户,命令行登录mysql,通过语句创建一个新用户 CREATE USER 'username'@'%' IDENTIFIED BY 'your_user_password'; 让我们授予这个用户一些数据库权限,例如,此用户可以拥有与 root 用户相同的数据库权限,只是 阅读全文
posted @ 2023-03-09 14:28 3SU 阅读(42) 评论(0) 推荐(0) 编辑

mysql8授权 grant all privileges on 语句报错

摘要: 原授权语句 GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; mysql8.0版本使用语句变为: grant all privileges on *.* to 'root'@'local 阅读全文
posted @ 2023-03-09 13:59 3SU 阅读(226) 评论(0) 推荐(0) 编辑

mysql8.0 sql_mode 报错1055

摘要: Mysql的8.0版本中默认是开启sql_mode = only_full_group_by。可能会导致1055报错,要关闭的话可以这样操作 在MySQL下执行语句 SELECT @@sql_mode将查询结果中的ONLY_FULL_GROUP_BY去掉然后复制 找到MySQL的配置文件window 阅读全文
posted @ 2023-03-09 13:56 3SU 阅读(84) 评论(0) 推荐(0) 编辑

spring boot server port不起作用

摘要: 自己在application.yml中 server: port:8088刚开始这样设置不起作用,后来发现是port:和端口号之间需要一个空格才能生效,如下port: 8099yml语法规则的问题 阅读全文
posted @ 2020-12-08 17:49 3SU 阅读(1633) 评论(0) 推荐(0) 编辑

Vuex持久化存储之vuex-persist

摘要: Vuex的状态存储并不能持久化,存储在 Vuex 中的 store 里的数据,只要一刷新页面,数据就丢失了 所以引入vuex-persist 插件,可以自动将 Vuex的 store 数据本地持久化存储 安装: npm install --save vuex-persist 使用: import V 阅读全文
posted @ 2020-12-07 17:25 3SU 阅读(468) 评论(0) 推荐(0) 编辑

vue-cli3.x Vue.prototype挂载

摘要: 使用vue-cli3.x 创建项目 之前vue-cli2创建项目后,如果自定义js插件,可以通过 import xxx from 'xxx' Vue.prototype.$xxx = xxx 将xxx挂载到Vue原型上,但到了cli3中,根据网上资料,现在 import Vue from 'vue' 阅读全文
posted @ 2020-12-04 16:19 3SU 阅读(7015) 评论(0) 推荐(1) 编辑

vuerouter history模式 iis配置

摘要: 备忘 vue-cli3创建vue项目 项目目录下自己新增文件 vue.config.js 文件内容如下 module.exports = { //publicPath: './', publicPath: process.env.NODE_ENV 'production' ? '/projectna 阅读全文
posted @ 2020-12-02 11:39 3SU 阅读(450) 评论(0) 推荐(0) 编辑

C# 函数参数中的this

摘要: public static class StringExtension { public static void Foo(this string s) { Console.WriteLine("Foo invoked for {0}", s); } } 为什么这里会有一个this关键字,做什么用?其 阅读全文
posted @ 2020-11-06 11:54 3SU 阅读(205) 评论(0) 推荐(0) 编辑

EntityFramework初入

摘要: //NuGet包管理,搜索引入 EntityFramework6 、Newtonsoft //使用: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System. 阅读全文
posted @ 2020-11-02 16:19 3SU 阅读(68) 评论(0) 推荐(0) 编辑

PHPstudy设置xdebug之后,PHPStorm无法断点调试

摘要: 打开php.ini设置,找到Xdebug设置,红色部分是原有的配置,添加蓝色部分,重启服务,phpstorm的setting中xdebug的port 要和此配置xdebug.remote_port 相同 [Xdebug] xdebug.profiler_output_dir="D:\ProgramF 阅读全文
posted @ 2020-08-20 12:07 3SU 阅读(247) 评论(0) 推荐(0) 编辑