Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> MySQL

การติดตั้ง MySQL จาก Source บน Linux

Linux มีหลายวิธีติดตั้ง MySQL ใช้เพียงหนึ่ง distribution จาก Oracle

Setup Methods:

  • Apt: Enable MySQL Apt repository
  • Yum: Enable MySQL Yum repository
  • Zypper: Enable MySQL SLES repository
  • RPM: Download specific package
  • DEB: Download specific package
  • Generic: Download generic package
  • Source: Compile from source
  • Docker: Docker Hub (Community), My Oracle Support (Enterprise)
  • Oracle Unbreakable Linux Network: Use ULN channels

Package manager ติดตั้ง MySQL จาก native repositories ได้ แต่วersion มักจะเก่ากว่า current release

Development milestone releases โดยทั่วไปไม่มีใน native repositories

หลาย Linux installations ต้อง setup MySQL เริ่มต้นอัตโนมัติตอน machine start

Native packages ทำได้บางส่วน แต่ source/binary/RPM ต้อง setup เอง

Script ที่ต้องใช้: 'mysql.server' (ใน support-files directory หรือ MySQL source tree) ติดตั้งเป็น /etc/init.d/mysql สำหรับ auto start/shutdown