原创 VMware Windows Ubuntu16.04 共享文件 hdfs

問題 error 希望Windows能與在其上使用VMware安裝的Ubuntu之間共享文件夾。按照普遍的提供的方法: 安裝VMware-tools Windows 在關閉ubuntu的情況下,在VMWare左側,右擊ubuntu,選

原创 MySql函數

DELIMITER $$ DROP FUNCTION IF EXISTS test_fun1$$ CREATE FUNCTION test_fun1 (df1 INT) RETURNS VARCHAR(20) DETERMINISTI

原创 Redis: Read timed out (ElastiCache)

問題 redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out 分析 Redis: 2

原创 Can't read dir of '.' (errno: 13)

問題 os:ubuntu mysql version:Ver 14.14 Distrib 5.5.43 datadir:/pdata/data/ >show databases; ERROR 1018 (HY000): Can

原创 mysqldump: Got error: 1: Can't create/write to file '/data/export/test.txt' (Errcode: 13)

問題 需要將數據已csv格式導出到/data/export/路徑下,遇到問題: mysqldump: Got error: 1: Can’t create/write to file ‘/data/export/test.txt’ (E

原创 Ubuntu安裝inception錯誤處理make[2]: *** [sql/CMakeFiles/sql.dir/sql_yacc.cc.o] Error 1

問題 make[2]: * [sql/CMakeFiles/sql.dir/sql_yacc.cc.o] Error 1 make[1]: * [sql/CMakeFiles/sql.dir/all] Error 2 make: *

原创 MySQL鎖;Lock wait timeout exceeded; try restarting transaction

問題 Lock wait timeout exceeded; try restarting transaction 分析 設置了autocommit=0,但沒有提交或者回滾;autocommit是session級別的。如 set aut

原创 訪問www首頁不跳轉三級域名的兩種方式 (struts welcome-file-list index.action問題)

問題: 在工程發佈的時候,首頁訪問一般都是www.xxx.com,如果首頁沒有動態action數據那麼沒有什麼問題;如果是action請求數據,則可能遇到訪問不到內容的情況,比方: 1.訪問www.xxx.com 無法訪問 2.訪問www

原创 關於MySQL的order by與group by的組合使用

group by會用吧?order by也會用吧?可是,同時使用的時候,結果卻有了出入? 那麼,那麼在你鬱悶的時候,靜下心來思考吧…… 在group by 和order by同時使用的時候,你的排序策略(即asc or desc)會直接

原创 Mysql tee prompt pager

tee說明 可以將之後在mysql的所有輸入輸出操作記錄到filename中。 方法一、配置文件 在服務器上的/etc/my.cnf中的[client]加入  tee =/tmp/client_mysql.log即可. 方法二、命令行