วิธีที่ 1
1. run -->msconfig --> Enter system configuration utility
2. ไปที่ services แล้วหาคำว่า windows Installer แล้วติกออกกแล้วก้อ ok restart เครื่องกลับมามันจะขึ้นหน้าต่างมาหนึ่งหน้าต่างติ๊กอีกที่แล้ว ok จบขั้นตอนครับ
ถ้าอยากจะลงโปรแกรมก้อทำเหมือนเดิมครับแต่ติ๊กกลับครับ
วิธีที่ 2
1. ไปที่ Start >> Run พิมพ์ คำว่า gpedit.msc ลงไปครับ
2. หน้าต่างของ Local Group Policy Editor
เลือก - Local Computer Policy >Computer Configuration > Administrative Templates>Window Components>Windows Installer
แล้วมองทางช่องด้านขวามือ แล้วหาคำว่า Turn off Windows Installer
คลิกขวา ตรงคำว่า Turn off Windows Installer ทีนึงแล้ว เลือก edit
3. เลือก Enabled > Apply > OK
Admin ฺBasic
สำหรับผู้ดูแลระบบขั้นพื้นฐาน
วันพฤหัสบดีที่ 30 สิงหาคม พ.ศ. 2561
ติดตั้ง setup tools บน linux ( CentOS )
---------------------
[root@tel ~]# setup
2
-bash: setup: command not found
So how to install it in minimal install ?
[root@tel ~]# setup
2
-bash: setup: command not found
So how to install it in minimal install ?
-------------------------
เรียกติดตั้ง เพิ่ม ดังนี้
เรียกติดตั้ง เพิ่ม ดังนี้
yum –y install setuptool
yum –y install system-config-network*
yum -y install system-config-firewall*
yum –y install system-config-securitylevel-tui
yum –y install system-config-keyboard
yum -y install ntsysv
Repair Mysql Database
# mysqlcheck -u root -p --auto-repair --all-database
***** repair table *****
# mysql -u -root -p123456
# use jhcisdb
$ repair table 506_cal_e0_e1
install MySQL On CentOS
1. Identify the Group name of MySQL Packages
# yum grouplist | grep -i mysql
2. What is bundled in the “MySQL Database” group?
# yum groupinfo "MySQL Database"
3. Install the “MySQL Database” group using yum groupinstall
# yum groupinstall "MySQL Database"
4. Verify MySQL Installation
# rpm -qa | grep -i mysql
Check the /etc/passwd and /etc/group to make sure it has created a mysql username and group.
# grep mysql /etc/passwd
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
# grep mysql /etc/group
mysql:x:27:
5. MySQL Post installation – Execute mysql_install_db
# /usr/bin/mysql_install_db --user=mysql
6. Start MySQL Server
# service mysqld status
7. Verify that the MySQL server is up and running
# /usr/bin/mysqladmin version
8. Change the MySQL root account password
# mysql -u root
mysql> select host, user from mysql.user;
+-----------+------+
| host | user |
+-----------+------+
| 127.0.0.1 | root |
| localhost | |
| localhost | root |
+-----------+------+
5 rows in set (0.00 sec)
mysql> set password for 'root'@'localhost' = PASSWORD('DoNotTell$AnyBody');
Query OK, 0 rows affected (0.00 sec)
mysql> set password for 'root'@'127.0.0.1' = PASSWORD('DoNotTell$AnyBody');
Query OK, 0 rows affected (0.00 sec)
***********///////////////////////
# yum list installed 'mysql*'
# yum grouplist | grep -i mysql
2. What is bundled in the “MySQL Database” group?
# yum groupinfo "MySQL Database"
3. Install the “MySQL Database” group using yum groupinstall
# yum groupinstall "MySQL Database"
4. Verify MySQL Installation
# rpm -qa | grep -i mysql
Check the /etc/passwd and /etc/group to make sure it has created a mysql username and group.
# grep mysql /etc/passwd
mysql:x:27:27:MySQL Server:/var/lib/mysql:/bin/bash
# grep mysql /etc/group
mysql:x:27:
5. MySQL Post installation – Execute mysql_install_db
# /usr/bin/mysql_install_db --user=mysql
6. Start MySQL Server
# service mysqld status
7. Verify that the MySQL server is up and running
# /usr/bin/mysqladmin version
8. Change the MySQL root account password
# mysql -u root
mysql> select host, user from mysql.user;
+-----------+------+
| host | user |
+-----------+------+
| 127.0.0.1 | root |
| localhost | |
| localhost | root |
+-----------+------+
5 rows in set (0.00 sec)
mysql> set password for 'root'@'localhost' = PASSWORD('DoNotTell$AnyBody');
Query OK, 0 rows affected (0.00 sec)
mysql> set password for 'root'@'127.0.0.1' = PASSWORD('DoNotTell$AnyBody');
Query OK, 0 rows affected (0.00 sec)
***********///////////////////////
# yum list installed 'mysql*'
Lost MySQL Admin Password
###### On Linux
1. First, stop current MySQL database server:
# /etc/init.d/mysqld stop
2. Now, start mysql server without password so that you can restart the password:
# mysqld_safe --skip-grant-tables &
3. Login without a password, enter:
# mysql -u root
4. Finally, setup a new MySQL root user password, enter::
mysql> USE mysql;
mysql> UPDATE user SET password=PASSWORD('mthpw01') WHERE User='root';
mysql> GRANT ALL PRIVILEGES ON *.* to 'root'@'%' IDENTIFIED BY 'mthpw01';
mysql> FLUSH privileges;
mysql> quit
5. Replace NEW-ROOT-PASSWORD with actual password you want to use. Restart running mysql server:
# mysql -u root -p
#### กรณี On Windows
1.stop mysql ไปที่ contol panel > service >mysql กด stop
2.ไปที่ run พิมพ์ cmd >กด enter
3.พิมพ์ cd\
4.พิมพ์ cd appserv\mysql\bin กด enter
หมายเหตุ ที่เก็บ mysql จะแตกต่างกันแล้วแต่ว่าท่านเลือกใช้ web server ตัวใด
5.พิมพ์ mysqld-nt -u root --skip-grant-tables กด enter
ให้เปิดหน้าต่าง command อีกหน้าต่าง หน้าต่างเดิมไม่ต้องปิด โดย
ไปที่ run พิมพ์ cmd >กด enter
1.พิมพ์ cd\
2.พิมพ์ cd appserv\mysql\bin กด enter
หมายเหตุ ที่เก็บ mysql จะแตกต่างกันแล้วแต่ว่าท่านเลือกใช้ web server ตัวใด
3.พิมพ์ mysql กด enter
4.พิมพ์ use mysql
5.พิมพ์ UPDATE user SET Password = PASSWORD('123456') WHERE User = 'root'; กด enter
####
ปัญหาคือ ไม่สามารถเข้า database ได้ เกิด error ดังนี้
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
วิธีการแก้ปัญหาคือ
1.restart MySQL
2.ไปที่ Path ที่ลง MySQL ไว้หาไฟล์ชื่อ my.ini เปิดไฟลล์ด้วย notepad++ หาคำว่า [mysqld]
แล้วทำการ enter พิมพ์คำว่า skip-grant-tables ลงไป
3.run MySQL อีกครั้ง
4.เปิด Navicat เลือก database ชื่อ mysql ตาราง user ให้ลบ password ของ user root ออกไปให้เป็นค่าว่าง
5.stop MySQL ไปที่ Path ที่ลง MySQL ไว้หาไฟล์ชื่อ my.ini แล้วลบคำว่า skip-grant-tables ที่เราเพิ่มออกไป
6.run MySQL อีกครั้ง เสร็จเรียบร้อยครับ
1. First, stop current MySQL database server:
# /etc/init.d/mysqld stop
2. Now, start mysql server without password so that you can restart the password:
# mysqld_safe --skip-grant-tables &
3. Login without a password, enter:
# mysql -u root
4. Finally, setup a new MySQL root user password, enter::
mysql> USE mysql;
mysql> UPDATE user SET password=PASSWORD('mthpw01') WHERE User='root';
mysql> GRANT ALL PRIVILEGES ON *.* to 'root'@'%' IDENTIFIED BY 'mthpw01';
mysql> FLUSH privileges;
mysql> quit
5. Replace NEW-ROOT-PASSWORD with actual password you want to use. Restart running mysql server:
# mysql -u root -p
#### กรณี On Windows
1.stop mysql ไปที่ contol panel > service >mysql กด stop
2.ไปที่ run พิมพ์ cmd >กด enter
3.พิมพ์ cd\
4.พิมพ์ cd appserv\mysql\bin กด enter
หมายเหตุ ที่เก็บ mysql จะแตกต่างกันแล้วแต่ว่าท่านเลือกใช้ web server ตัวใด
5.พิมพ์ mysqld-nt -u root --skip-grant-tables กด enter
ให้เปิดหน้าต่าง command อีกหน้าต่าง หน้าต่างเดิมไม่ต้องปิด โดย
ไปที่ run พิมพ์ cmd >กด enter
1.พิมพ์ cd\
2.พิมพ์ cd appserv\mysql\bin กด enter
หมายเหตุ ที่เก็บ mysql จะแตกต่างกันแล้วแต่ว่าท่านเลือกใช้ web server ตัวใด
3.พิมพ์ mysql กด enter
4.พิมพ์ use mysql
5.พิมพ์ UPDATE user SET Password = PASSWORD('123456') WHERE User = 'root'; กด enter
####
ปัญหาคือ ไม่สามารถเข้า database ได้ เกิด error ดังนี้
- ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
วิธีการแก้ปัญหาคือ
1.restart MySQL
2.ไปที่ Path ที่ลง MySQL ไว้หาไฟล์ชื่อ my.ini เปิดไฟลล์ด้วย notepad++ หาคำว่า [mysqld]
แล้วทำการ enter พิมพ์คำว่า skip-grant-tables ลงไป
3.run MySQL อีกครั้ง
4.เปิด Navicat เลือก database ชื่อ mysql ตาราง user ให้ลบ password ของ user root ออกไปให้เป็นค่าว่าง
5.stop MySQL ไปที่ Path ที่ลง MySQL ไว้หาไฟล์ชื่อ my.ini แล้วลบคำว่า skip-grant-tables ที่เราเพิ่มออกไป
6.run MySQL อีกครั้ง เสร็จเรียบร้อยครับ
วันพฤหัสบดีที่ 20 สิงหาคม พ.ศ. 2558
การติดตั้ง Tomcat บน CentOS 6.5
การติดตั้ง Tomcat บน CentOS 6.5 สามารถใช้วิธีด้วยใช้การติดตั้งแบบ Group install ดังนี้
1. ก่อนอื่นให้ทำงานติดตั้งแพ็กเกจ JAVA ก่อน
yum groupinstall 'Java Platform' -y
2. ติดตั้งแพ็กเกจรวมของ tomcat
yum groupinstall 'Web Servlet Engine' -y
แพ็กเกจที่ถูกติดตั้งมีดังนี้
1. ก่อนอื่นให้ทำงานติดตั้งแพ็กเกจ JAVA ก่อน
yum groupinstall 'Java Platform' -y
2. ติดตั้งแพ็กเกจรวมของ tomcat
yum groupinstall 'Web Servlet Engine' -y
แพ็กเกจที่ถูกติดตั้งมีดังนี้
สมัครสมาชิก:
บทความ (Atom)