Dozens of problems-scumarket API Dev (2)
来源:互联网 发布:yy淘宝刷单平台 编辑:程序博客网 时间:2024/05/29 14:46
接着上一篇来吧,突然暴露好多问题,其实呢,之前就一直有,于是想起了“写博客和坚持写博客的区别”,还是要多总结啊。
1.MySQL创建用户,分配权限
a.创建用户test,能够从任何机器访问(%的重要性,不过貌似默认是%,但是如果没有显示指定的话,好像还是没有达到%的功能,比如localhost没有成功)
create user "test"@"%" identified by "test";
b.分配权限,从任何机器访问该MySQL服务器的用户test具有对所有数据库的所有表(*.*的作用)的所有权限(all privileges的作用),而且test用户还能够对其他用户分配权限(with grant option的作用)。
grant all privileges on *.* to "test"@"%" with grant option;c.刷新权限。如果不执行这一步的话,之前的工作无效。貌似是一直保留在Buffer里面
flush privileges;
2.MySQL使用命令行执行*.sql文件,听说命令行执行会比Navicat等其他工具导入快,是不是图像话界面消耗量更多的CPU导致MySQL性能降低呢。。。。
source F:\creat_table.sql;
3.Java里面获取对象的属性名称(不是值).
比如在类中定义了一个属性abc,如何获取这个变量的abc的名字串呢?也就是说怎么知道abc这个变量的名字是abc,这个问题比较的好玩。
解决方案是:反射。
有文章介绍:http://www.blogjava.net/zhongli/archive/2009/02/13/254535.html
0 0
- Dozens of problems-scumarket API Dev (2)
- Dozens of problems-scumarket API Dev (1)
- Private Git—scumarket API Dev(3)
- Test Dozens of Browsers All At Once
- What Powers Instagram: Hundreds of Instances, Dozens of Technologies
- [Android环境搭建错误解决四]未解决dpkg: dependency problems prevent configuration of lib64z1-dev
- Some problems of mysql
- encode problems of browser
- Categories of performance problems
- Some Problems of FATFS
- Instagram Engineering • What Powers Instagram: Hundreds of Instances, Dozens of Technologies
- virtuemart Paypal (new API) problems
- the Common Problems of Hibernate
- problems with wifi of SmartQ7
- the concerned problems of cluster
- Check the difficulty of problems
- LeetCode:solution of shell problems
- Summary of problems when coding
- apache mail发送邮件
- 2010年51CTO最受读者喜爱的十大IT图书
- poj 1251 Jungle Roads(最小生成树)
- 从注册表完全删除visual studio怎么删
- Lua 环境搭建 --Linux
- Dozens of problems-scumarket API Dev (2)
- 2014-04-25
- Linux下fork()函数
- linux用户管理练习题
- 彻底理解ThreadLocal
- ajax验证表单、分页、Yii ajax分页
- LeetCode 求和问题总结(2sum,3sum,ksum)
- day_9使用数据库连接池技术连接数据库
- eos studio 5.3 集成svn