วันจันทร์ที่ 23 มิถุนายน พ.ศ. 2557

วันอังคารที่ 17 มิถุนายน พ.ศ. 2557

MySQL

MySQL

MySQL is a Relational Database Management System (RDBMS) that runs as a server providing multi-user access to a number of databases.  For more information on MySQL, you can visit their website at www.mysql.com.

Version

This documentation was written for MySQL 5.0.45 but may be usefull with other versions.

How to install MySQL

  1. Install MySQL
    yum install mysql-server mysql php-mysql

How to configure MySQL

  1. Set the MySQL service to start on boot
    chkconfig --levels 235 mysqld on
  2. Start the MySQL service
    service mysqld start
  3. Log into MySQL
    mysql -u root
  4. Set the root user password for all local domains
    SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new-password');
    SET PASSWORD FOR 'root'@'localhost.localdomain' = PASSWORD('new-password');
    SET PASSWORD FOR 'root'@'127.0.0.1' = PASSWORD('new-password');
  5. Drop the Any user
    DROP USER ''@'localhost';DROP USER ''@'localhost.localdomain';
  6. Exit MySQL
    exit
from http://dev.antoinesolutions.com/mysql

วันพุธที่ 4 มิถุนายน พ.ศ. 2557

ข้าสู่ Windows 8 โดยที่ไม่ต้องทำการใส่พาสเวิร์ด

สำหรับในทิปนี้แอดมินจะมาแนะนำวิธีการเข้าสู่ Windows 8 โดยที่ไม่ต้องทำการใส่พาสเวิร์ดเพื่อความสะดวกรวดเร็วนั่นเองครับ โดยมีวิธีการดังต่อไปนี้
1. ขั้นตอนแรกให้เราทำการเรียกหน้าต่าง Run ขึ้นมาก่อนโดยการกดปุ่ม Windows + R
2. จากนั้นทำการพิมพ์คำว่า netplwiz ลงในช่องแล้วกด Enter ครับ
3. จากนั้นทำการเลือก User ที่เราต้องการจะเข้าโดยไม่ต้องใช้พาสเวิร์ด
4. ทำการเอาเครื่องหมายถูกออกจากหัวข้อ Users must enter a user name and password to use this computer
5. คลิก OK แล้วระบบจะถามหารหัสผ่าน ให้ใส่ไป 2 ครั้ง แล้วกด Ok อีกครั้งหนึ่ง
เพียงเท่านี้ก็เสร็จเรียบร้อยแล้วครับ

วันจันทร์ที่ 2 มิถุนายน พ.ศ. 2557

การปิด ping ไม่ให้ทำการ ping หาเครื่องเราได้

windows xp
   start >Control Panel >Windows Firewall > Tab General
   ให้เลือก check “On (recommended)”

   แล้วให้ไปที่ Tab Advanced
   start >Control Panel >Windows Firewall > Tab Advanced

   เลือกหัวข้อ ICMP click to “Settings…”
   เอาเครื่งหมายถูกช่อง allow incoming echo request ออก

   Test ping ว่าปิดได้ไหมครับ
#ping ip_address


windows Server 2003
   start >Control Panel >Windows Firewall > Tab General
   ให้เลือก check “On”

   แล้วให้ไปที่ Tab Advanced
   start >Control Panel >Windows Firewall > Tab Advanced

   เลือกหัวข้อ ICMP click to “Settings…”
   เอาเครื่งหมายถูกช่อง allow incoming echo request ออก

   Test ping ว่าปิดได้ไหมครับ
#ping ip_address


Windows Server 2008 จะถูกตั้งค่าให้ปิด Ping Reply อยู่แล้ว
   วิธีการตั้งค่า Windows Server 2008 ให้สามารถ Ping Reply ได้ให้ดูข้อมูลได้ที่เว็บsosweets.net ซื่งอธิบายรายละเอียดทุกขึ้นตอน


windows 7
   -


linux Redhat/CentOS
   พิมพ์คำสั่งตามข้างล่าง
   [root@RD ~]# echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
   ถ้าต้องการให้สามารถ ping ได้เหมือนเดิม ให้เปลี่ยนการ echo 1 เป็น echo 0 แทนครับ

ที่มาhttp://group.wunjun.com/hospital/topic/420422-13602