Category Archives: Sử dụng máy vi tính

Why did you start XAMPP failed

Maybe:
– Duplicate listen port
– Wrong virtual host config
– Directory permission

How to know to fix
– Find error log detail

Where?
– Apache log file. Example: C:\xampp\apache\log\error.log
– Run: C:\xampp\apache\httpd.exe -t
– System log: Control Panel – Administrative Tools – Event Viewer – Application

SSH chạy lệnh rồi đi ngủ

Bình thường:
SSH vào server
Rồi chạy lệnh/script XXX gì đó (mất nhiều thời gian mới hoàn thành)
Nếu có việc phải exit hoặc bị disconnect thì lệnh XXX đang chạy sẽ tèo :|

Do đó, phải chạy lênh như này:
nohupYOUR_COMMAND &

Tham khảo thêm:
– http://en.wikipedia.org/wiki/Nohup
– nice

Microsoft Download Manager

Download Manager là những phần mềm cho phép tối ưu tốc độ download file từ Internet và giúp người dùng thuận tiện hơn trong việc quản lý các file sau khi download. Mới đây, “gã khổng lồ” Microsoft đã cho ra mắt phần mềm hỗ trợ download của riêng mình.

Nhắc đến phần mềm hỗ trợ download, hẳn bạn sẽ nghĩ ngay đến Internet Download Manager (IDM). Tuy nhiên, IDM là phần mềm có thu phí và chỉ được 30 ngày dùng thử.
Continue reading →

MySQL grant and revoke

mysql -uroot -pRooTIsmE -h mysqlServer

create user special@’%’ identified by ‘password’;
grant all on *.* to special@’%’ identified by ‘password’;
revoke drop, delete on *.* from special@’%’ identified by ‘password’;
flush privileges;
show grants for special@’%’;
exit;

mysql -uspecial -ppassword
create database huypv;
drop database huypv;
#ERROR 1044 (42000): Access denied for user ‘special’@’%’ to database ‘huypv’