Archive for March, 2006

18.03.06

Changing MySQL Root Password

This document explains how to change the root user password in MySQL access privilege database.

1. Login as root to the box with the MySQL server.
2. Stop MySQL server.
3. Open the mysql server startup script. This is the file you have just executed to stop MySQL server.
4. Find the line that contains the safe_mysqld command and add –skip-grant-tables as its parameter.
5. Start MySQL server.
6. Login as the mysql user and connect to the mysql user/permission database and run the update queries:

# su -l mysql
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD(’newrootpassword’) WHERE User=’root’;
mysql> FLUSH PRIVILEGES;

replacing newrootpassword with the new root password to the box with the MySQL server.
7. Exit mysql database by typing \q.
8. Exit mysql user console by typing exit
9. Stop MySQL server.
10. Open the mysql server startup script and remove the –skip-grant-tables parameter you added above.
11. Start MySQL server.
12. Open file my.cnf and update the password in the corresponding line.

11.03.06

การเซ็ต Squid ให้สามารถเข้าเว็บที่ใช้ SSL

เรื่องมันเกิดก็ตอนทดสอบเซ็ต squid มาใช้งานเองที่บ้าน แต่มีปัญหา
เข้าใช้งานเว็บ hotmail ไม่ได้ เกิดจากการเชื่อมต่อออก
ไปยังเว็บที่ใช้ SSL (Secure Socket Layer)

โดยค่าเริ่มต้นของการ config squid กำหนดให้ Cache SSL เข้าไปด้วยดังนั้น
เมื่อติดต่อไปยัง Website ใดๆ ที่มีการเปิด connection แบบ SSL จึงไม่สามารถ รับ-ส่ง ข้อมูลได้

วิธีแก้ไข
- ค้นหา “acl all” และแทรก “acl SSL method CONNECT” ในบรรทัดต่อไป
- และเพิ่ม “never_direct allow SSL” ในบรรทัดต่อไป

แหล่งข้อมูลต้นฉบับ Link

Copyright 2008 by Global Technology Integrated