前提

服务器上装有Ubuntu,且linux系统上装有Apache Web服务器、MySQL以及安装php

关键点

关键就是php连接mysql,进入root界面,两条命令搞定
1: apt install php7.4-mysql
2: service apache2 restart

截图

基于Ububtu上并在Apache web服务器上PHP连接MySQL具体可以参考GitHub(外网):
https://gist.github.com/lanrion/9867179

总结

国内百度一小时,不如国外谷歌3秒!!!

相关文章:

  • 2021-07-12
  • 2021-06-29
  • 2021-06-01
  • 2021-04-23
  • 2022-12-23
  • 2021-07-09
猜你喜欢
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2021-12-27
相关资源
相似解决方案