Debian

Debian 8.10 上的 PHP 5.6 和 Mysql 5.6.x

  • November 25, 2018

是否可以在 Debian 8.10 上執行 Php 5.6 和 Mysql 5.6.x?

PHP-5.6 在 debian jessie 上可用,可以通過以下方式安裝:

apt-get install php5

MySQL-5.6 可以通過MySQL APT 儲存庫安裝:

wget https://repo.mysql.com//mysql-apt-config_0.8.9-1_all.deb
dpkg -i mysql-apt-config_0.8.9-1_all.deb

選擇 Debian jessie 然後通過軟體包更新和安裝5.6版本:mysql``mysql-community-server

apt-get install mysql-community-server
mysql_secure_installation
mysql_install_db
systemctl start mysql

檢查 MySQL 版本:

mysqladmin -p -u root version

樣本輸出:

mysqladmin  Ver 8.42 Distrib 5.6.39, for Linux on x86_64
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Server version      5.6.39
Protocol version    10
Connection      Localhost via UNIX socket
UNIX socket     /var/run/mysqld/mysqld.sock
Uptime:         1 min 32 sec

mysql --version

mysql  Ver 14.14 Distrib 5.6.39, for Linux (x86_64) using  EditLine wrapper

引用自:https://unix.stackexchange.com/questions/418101