首页 文章 精选 留言 我的

精选列表

搜索[user],共10014篇文章
优秀的个人博客,低调大师

26.2. create database and user

# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10 Server version: 5.0.77 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> CREATE DATABASE dbname DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; GRANT ALL PRIVILEGES ON dbname.* TO 'dbuser'@'localhost' IDENTIFIED BY 'your_password' WITH GRANT OPTION; FLUSH PRIVILEGES; test login # mysql -u dbuser -p dbname Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 11 Server version: 5.0.77 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a>comments powered by Disqus 原文出处:Netkiller 系列 手札 本文作者:陈景峯 转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

优秀的个人博客,低调大师

User: root is not allowed to impersonate admin

<property> <name>hadoop.proxyuser.root.hosts</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.root.groups</name> <value>*</value> </property> After adding the property files intocore-site.xmlrestart your hadoopand try. Even though if it not works format the namenode and start hadoop it will work. 本文转自 yntmdr 51CTO博客,原文链接:http://blog.51cto.com/yntmdr/1741924,如需转载请自行联系原作者

优秀的个人博客,低调大师

loadrunner之java user脚本开发

脚本开发环境: loadrunner11.0 jdk1.6.32_x86_32 脚本开发 1.选择JavaVuser协议 2.配置java环境(Vuser--RunTime Settings) 3.开发javavuser脚本 /* * LoadRunner Java script. (Build: _build_number_) * * Script Description: JavaVuser访问页面 * * creator:jeffsui * * Create Time:2015-09-28 * */ import java.io.InputStream; import java.io.OutputStreamWriter; import java.net.URL; import java.net.URLConnection; import lrapi.lr; public class Actions { public int init() throws Throwable { return 0 ; } //end of init public int action() throws Throwable { /***访问首页事务*/ lr.start_transaction( "访问poptest首页" ); String serverUrl= "http://www.poptest.cn/" ;//请求页面url路径 OutputStreamWriter out = null ; try { URL url = new URL(serverUrl); URLConnection conn = url.openConnection();. //建立连接 conn.setDoInput( true ); conn.setDoOutput( true ); conn.setRequestProperty( "Content-Type" , "UTF-8" ); //设置请求字符编码 out= new OutputStreamWriter(conn.getOutputStream(), "UTF-8" ); //设置回应字符编码 out.flush(); out.close(); InputStream in =conn.getInputStream(); byte [] buffer= new byte [in.available()]; in.read(buffer); System.out.println( new String(buffer)); } catch (Exception e ) { e.printStackTrace(); } finally { if (out!= null ){ try { out.close(); } catch (Exception e ) { e.printStackTrace(); } } } lr.end_transaction( "访问poptest首页" , lr.AUTO); return 0 ; } //end of action public int end() throws Throwable { return 0 ; } //end of end } 4.编译 5.执行脚本 poptest经验分享: (1)loadrunner11只支持32位的jdk (2)RuntimeSettings里只是加载了基本jdk,如果需要加载其他第三方的jar包请在JavaFunction中加载 (3)JavaVuser的执行效率取决于你的Java代码。 注:转载需注明出处及作者。 流柯

优秀的个人博客,低调大师

Android LruCache : how to put and get user's data

package zhangphil.cache; import android.graphics.Bitmap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.util.LruCache; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); int CACHE_SIZE = 8 * 1024 * 1024; LruCache<String, Bitmap> mLruCache = new LruCache(CACHE_SIZE); int count = 5; String key; Bitmap bmp; for (int i = 0; i < count; i++) { key = String.valueOf(i); bmp = Bitmap.createBitmap(i + 1, i + 2, Bitmap.Config.ARGB_8888); mLruCache.put(key, bmp); } for (int i = 0; i < count; i++) { key = String.valueOf(i); bmp = mLruCache.get(key); Log.d("key:" + key, "value:" + bmp.getWidth() + "," + bmp.getHeight()); } } }

资源下载

更多资源
腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

用户登录
用户注册