找到mysql的启动配置文件windows下面是my.ini,Linux下面叫my.cnf,linux下面如果没有特别指定目录,则my.cnf一般存放于/etc/目录下面。2.修改mysql配置文件在配置文件中找到[mysqld]一行,在下面添加skip-grant-tables后保存该文件并退出。3.重新启动mysql数据库4.重置mysql的..
分类:
数据库 时间:
2017-09-04 22:29:16
阅读次数:
249
urList = (from u in urList orderby u.toolingNo_C select u).Skip(pageSize * (pageNum - 1)).Take(pageSize); OrderBy 是排序(后面是条件)然后要查询所有的,在所有的数据中在查询你要分页的数据 ...
分类:
其他好文 时间:
2017-09-04 17:42:35
阅读次数:
143
前几天刚在虚拟主机上装了个MySQL5.7,随手配置了个密码,今天直接就忘记(尴尬脸》。《),于是就想着把这个修改密码的方式贴出来,以备有道友忘记密码时备用。
先将MySQL关闭:servicemysqldstop
将MySQL登录方式设置为无需密码登录:mysql_safe--user=mysql--skip-grant..
分类:
数据库 时间:
2017-09-04 14:57:02
阅读次数:
195
Note: 1. Scan from the small level. 2. Only take the index larger one if same digits. ...
分类:
其他好文 时间:
2017-09-04 09:45:46
阅读次数:
126
在/ect/my.cnf中添加如下: skip-grant-tables sudo mysqld restart mysql回车,进入到sql >user mysql; >update user set authentication_string=password('123qwe') where u ...
分类:
数据库 时间:
2017-09-04 00:02:47
阅读次数:
198
# /etc/init.d/mysql stop 或者 service mysqld stop# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &# mysql -u root mysqlmysql> UPDATE us ...
分类:
数据库 时间:
2017-09-03 21:03:31
阅读次数:
187
方法一: 1、在DOS窗口下输入net stop mysql5 或 net stop mysql 2、开一个DOS窗口,这个需要切换到mysql的bin目录。 一般在bin目录里面创建一个批处理1.bat,内容是cmd.exe运行一下即可就切换到当前目录,然后输入 mysqld-nt --skip- ...
分类:
数据库 时间:
2017-09-03 14:09:33
阅读次数:
162
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston ...
分类:
其他好文 时间:
2017-09-03 10:04:00
阅读次数:
231
BlockingQueue最终会有四种状况,抛出异常、返回特殊值、阻塞、超时,下表总结了这些方法: 抛出异常 特殊值 阻塞 超时 插入 add(e) offer(e) put(e) offer(e, time, unit) 移除 remove() poll() take() poll(time, u ...
分类:
其他好文 时间:
2017-09-03 00:28:15
阅读次数:
128
I'm Zoey Cao from USTC, and I'm going to take the Software Engineering class in the following term. I see that one of the first homework is to get a b ...
分类:
其他好文 时间:
2017-09-02 09:39:38
阅读次数:
210