You are here: 首頁

飛朵啦學習手札

本網站建議使用Firefox2.0以上,或是使用Goole瀏覽器來瀏覽,並使用1024x768解析度來觀看.

JA slide show

新聞公告

歡迎來到飛朵啦學習手札

02

解決XAMPP MYSQL 無法權限表損毀啟動問題

E-mail 列印 PDF

XAMPP 完全無法啟動,而且PORT沒有被佔用權限表損毀。

錯誤訊息:

上午 10:14:09  [mysql] Status change detected: stopped

上午 10:14:09  [mysql] Error: MySQL shutdown unexpectedly.

上午 10:14:09  [mysql] This may be due to a blocked port, missing dependencies,

上午 10:14:09  [mysql] improper privileges, a crash, or a shutdown by another method.

上午 10:14:09  [mysql] Press the Logs button to view error logs and check

上午 10:14:09  [mysql] the Windows Event Viewer for more clues

上午 10:14:09  [mysql] If you need more help, copy and post this

上午 10:14:09  [mysql] entire log window on the forums

 

解決辦法:

1.緊急模式啟動(修復權限表)MYSQL:

mysqld --defaults-file="D:/tools/xampp/mysql/bin/my.ini" --skip-grant-tables --console

2.新開一個命令提示符窗口,登錄 MySQL:

mysql -u root

3.執行修復命令:

USE mysql;

REPAIR TABLE db;

如果看到以下結果Msg_text 是 OK,代表修復成功!

+--------+----------+----------+----------+

| Table  | Op       | Msg_type | Msg_text |

+--------+----------+----------+----------+

| mysql.db | repair | status   | OK       |

+--------+----------+----------+----------+

 

相關網址:

https://chatgpt.com/c/68142bfc-2898-8001-8f3e-3d3ce5728083

https://chat.deepseek.com/a/chat/s/8e6ee391-79e6-463f-a28c-16d6051da98c

最近更新 ( 週五, 02 五月 2025 11:20 )
 
 
17

錯誤SQLSTATE[HY000]: General error: 1 no such table: sessions

E-mail 列印 PDF

在composer裝好後,別忘了 使用下列指令建立基本資料庫

php artisan migrate

該狀況再在Laravel11出現

最近更新 ( 週五, 02 五月 2025 11:21 )
 
 
05

關於apache2.service: Control process exited, code=exited status=139

E-mail 列印 PDF

參考方式:stackoverflow

只要是“status=139”那麼主要問題在於因為在安裝PHP8.3時,舊的版本的PHP還在啟用,因此導致啟用了兩個版本的 PHP。

因此,我可以使用 php8.3,因為舊網站不在線上,僅供我本地使用。所以禁用 7.2 就可以了:

sudo a2dismod php7.2


當然,若是想用舊作為預設值,那麼就將新的關掉。

sudo a2dismod php8.3

sudo a2enmod php7.2

最近更新 ( 週三, 05 六月 2024 15:35 )
 
第 1 頁, 共 51 頁