sphinx遇到錯誤

2021-08-28 15:42:50 字數 1127 閱讀 9121

[root@localhost mysql]# /usr/lamp/mysql/bin/mysqladmin -u root -p shutdown 

enter password:

/usr/lamp/mysql/bin/mysqladmin: connect to server at 'localhost' failed

error: 'can't connect to local mysql server through socket '/tmp/mysqld.sock' (2)'

檢視'/tmp/mysqld.sock' 檔案 是否存在
編譯安裝mysql 指定的mysqld.sock目錄

using config file '/usr/lamp/coreseek/etc/csft.conf'...

indexing index 'main'...

error: index 'main': sql_query_pre[1]: query cache is disabled; restart the server with query_cache_type=1 to enable it (dsn=mysql://root:***@localhost:3306/sphinx).

在sphinx配置檔案開啟快取

query_cache_type=1

1要開啟mysql的快取,在mysql配置檔案

/etc/my.cnf;debian和ubuntu是在/etc/mysql/my.cnf)

雙擊**全選 1

23query_cache_size = 268435456

query_cache_type = 1

query_cache_limit = 1048576

以上語句的設定中 query_cache_size 是分配256m記憶體給query cache;query_cache_type=1,是給所有的查詢做cache;query_cache_limit 是指定個別的查詢語句1kb的記憶體。

這些資料可以根據自己的需求作出適當的更改,設定完成之後,儲存文件,重新啟動mysql即可。

遇到 ORACLE 錯誤 1658

在對oracle匯入資料時,多次報以下錯誤 imp 00003 遇到 oracle 錯誤 1659 ora 01659 無法分配超出 1 的 minextents 在表空間 zsta data tbs 中 imp 00003 遇到 oracle 錯誤 1658 ora 01658 無法為表空間 zs...

bochs安裝遇到錯誤

在乙個作業系統的實現中提到了乙個軟體叫bochs,以前安裝好了,今天重現安裝一下發現又忘記怎麼安裝的了,所以還是把這次的過程記錄下來為妙。的ubuntu下我們可以使用sudo apt get install bochs來安裝,但是這樣做有乙個弊端,那就是不能使用bochs的除錯功能,所以我們還是選擇...

springboot遇到的錯誤

1.訪問時404,1 當你沒有在配置檔案中配置專案名時直接 http localhost 8080 url直接進行訪問 2.使用mybatis generator生成時,找不到類 tk.mybatis 4.0.3 3.使用tk外掛程式時,使用autowried報錯 spring boot中 clou...