解决方法:
1。 改表法。
可能是你的帐号不允许从远程登陆,只能在localhost。这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%"
mysql -u root -pvmwaremysql>use mysql;
mysql>update user set host =...
分类:
数据库 时间:
2015-04-12 01:24:45
阅读次数:
180
执行如下命令报错mysql -uroot -h${hostIp} -pEnter password:*********ERROR 1130 (HY000): Host '$hostIp' is not allowed to connect to this MySQL server解决方法:1。 改表...
分类:
数据库 时间:
2015-04-11 14:46:49
阅读次数:
137
problem:
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5,
...
分类:
其他好文 时间:
2015-04-10 18:02:27
阅读次数:
99
problem:
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Write a function to determine if a give...
分类:
其他好文 时间:
2015-04-10 17:53:57
阅读次数:
103
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Write a function to determine if a given target is in the...
分类:
其他好文 时间:
2015-04-10 11:32:40
阅读次数:
125
再用SQLYog进行10w用户数据sql导入的时候,出错,后查看日志找到错误代码为:
MySQL 服务器已离线
后经过查询发现时mysql设置的问题.
打开mysql配置文件my.ini(linux为my.cnf),添加或修改max_allowed_packet参数:...
分类:
数据库 时间:
2015-04-09 21:58:32
阅读次数:
286
Follow up for “Find Minimum in Rotated Sorted Array”:
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Suppose a sorted array is rotated at some pivot...
分类:
其他好文 时间:
2015-04-09 19:49:17
阅读次数:
115
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5, and A is now [1,1,2,...
分类:
其他好文 时间:
2015-04-08 18:08:31
阅读次数:
118
mysql数据库脚本在导入数据库的时候出现"MySQL server has gone away"问题解决问题的办法:1、打开MySQL\MySQL Server 5.7里面的配置文件my.ini设置max_allowed_packet=?2、打开mysql输入指令:mysql>set global...
分类:
其他好文 时间:
2015-04-07 19:24:00
阅读次数:
146
目的:向MySql数据库导入.txt文件,通过load命令来实现输入如下命令,报错:修改命令,依旧报错:可能原因(from mysql reference manual): If LOAD DATA LOCALis disabled, either in the server or the clie...
分类:
数据库 时间:
2015-04-06 17:08:02
阅读次数:
546