最近在实习时,一些mysql的命令经常会被用到,所以做了一下整理: 解决字符乱码问题:显示汉语而非乱码:set names utf8; 修改新密码:update user set password=PASSWORD('新密码') where user='用户名'; 更新权限:flush privil ...
分类:
数据库 时间:
2016-04-18 18:52:14
阅读次数:
241
问题一:在我们进行数据库操作时会发现,数据库中表的编码用的是utf-8,但是在进行dos命令是要使用set names gbk (一)Mysql中默认字符集设置有四级:服务器级,数据库级,表级,和字段级 前三种都是默认设置,并不代表你的字段最终会使用这个字符集设置 (二)set names 这个my ...
分类:
数据库 时间:
2016-04-17 11:32:01
阅读次数:
174
在MVC后台开发中,使用mysql.class.php,连接数据库时,__construct(),的时候,总会 mysql_query('set names utf8');来快捷的设置mysql的字符集 这其实是设置的,Mysql,中的character_set-client,character_s ...
分类:
数据库 时间:
2016-04-11 23:59:27
阅读次数:
436
注意:关闭R之前务必保存工作空间,保证学习的连续性。这样以前数据的控制台命令执行的效果以及相关变量仍然保存在内存中。 1 访问数据框变量 建议:在read.table命令执行names查看要处理的变量 1.1 str函数 str函数可以查看数据框中每个变量的属性: Sample ,Yead,Mont ...
分类:
编程语言 时间:
2016-04-11 18:14:22
阅读次数:
239
peewee安装时随意了点。装了2.8.0的。 倒回到2.6.0就好了。 ...
分类:
其他好文 时间:
2016-04-11 10:10:43
阅读次数:
206
1、An assignment statement creates a new variable and gives it a value: Variable names can be as long as you like. They can contain both letters and nu ...
分类:
编程语言 时间:
2016-04-10 17:51:27
阅读次数:
162
报表所用文件: (1)报表设计文件:xxx.rdlc文件 (2)调用报表文件: xxx.aspx文件 报表实现: (1)aspx调用代码:<rsweb:ReportViewer ID="report1" runat="server" Font-Names="Verdana" Font-Size="8 ...
分类:
Web程序 时间:
2016-04-09 23:43:09
阅读次数:
391
AngularJS SQL 使用 PHP 从 MySQL 中获取数据 实例 <div ng-app="myApp" ng-controller="customersCtrl"> <table> <tr ng-repeat="x in names"> <td>{{ x.Name }}</td> <td ...
分类:
数据库 时间:
2016-04-09 10:42:12
阅读次数:
305
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Threading; using System.Net; names ...
分类:
编程语言 时间:
2016-04-06 11:24:11
阅读次数:
248
当我新建LDAP认证模式时,遇到如下错误: timeout是auth_source的一个属性,但是却没有生成timeout的读方法,经过跟踪发现是因为添加了 safe_attributes 中的 bad_attribute_names 方法返回的数组包含了timeout关键字,导致该方法没有生成。 ...
分类:
其他好文 时间:
2016-04-06 11:12:04
阅读次数:
171