LuoJunC

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年6月10日

摘要: 1.创建用户 2.用户授权 说明: privileges - 用户的操作权限,如SELECT , INSERT , UPDATE 等(详细列表见该文最后面).如果要授予所的权限则使用ALL.;databasename - 数据库名,tablename-表名,如果要授予该用户对所有数据库和表的相应操作 阅读全文
posted @ 2017-06-10 20:08 LuoJunC 阅读(3182) 评论(0) 推荐(0) 编辑

2017年5月19日

摘要: 1.下载mysql的repo源 2.安装mysql-community-release-el7-5.noarch.rpm包 3.安装mysql 4.获取安装mysql时随机生成的root密码 5.修改密码 6.进入mysql 阅读全文
posted @ 2017-05-19 15:32 LuoJunC 阅读(161) 评论(0) 推荐(0) 编辑

2017年4月5日

摘要: Given two strings representing two complex numbers. You need to return a string representing their multiplication. Note i2 = -1 according to the defin 阅读全文
posted @ 2017-04-05 14:57 LuoJunC 阅读(157) 评论(0) 推荐(0) 编辑

2017年2月23日

摘要: You are given two arrays (without duplicates) nums1 and nums2 where nums1’s elements are subset of nums2. Find all the next greater numbers for nums1' 阅读全文
posted @ 2017-02-23 15:28 LuoJunC 阅读(156) 评论(0) 推荐(0) 编辑

2017年2月22日

摘要: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 阅读全文
posted @ 2017-02-22 17:02 LuoJunC 阅读(96) 评论(0) 推荐(0) 编辑

摘要: Given a non-empty integer array, find the minimum number of moves required to make all array elements equal, where a move is incrementing a selected e 阅读全文
posted @ 2017-02-22 16:28 LuoJunC 阅读(115) 评论(0) 推荐(0) 编辑

摘要: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at 阅读全文
posted @ 2017-02-22 15:40 LuoJunC 阅读(90) 评论(0) 推荐(0) 编辑

摘要: Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements that appear twi 阅读全文
posted @ 2017-02-22 14:06 LuoJunC 阅读(117) 评论(0) 推荐(0) 编辑

摘要: In LLP world, there is a hero called Teemo and his attacking can make his enemy Ashe be in poisoned condition. Now, given the Teemo's attacking ascend 阅读全文
posted @ 2017-02-22 11:23 LuoJunC 阅读(88) 评论(0) 推荐(0) 编辑

2017年2月21日

摘要: Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of 阅读全文
posted @ 2017-02-21 14:24 LuoJunC 阅读(125) 评论(0) 推荐(0) 编辑