简体   繁体   English

在 Ubuntu 22.04 LTS 上安装 MySQL 5.6

[英]Install MySQL 5.6 on Ubuntu 22.04 LTS

I have a codeigniter 2.2.6 project running on my server perfectly fine and I want to do some minor changes.我有一个 codeigniter 2.2.6 项目在我的服务器上运行得很好,我想做一些小的改动。

When I run the same code in local I realize that codeigniter 2.2.6 required old version of mysql当我在本地运行相同的代码时,我意识到 codeigniter 2.2.6 需要旧版本的 mysql

So, How can I install MySql 5.6 on ubuntu 22.04 LTS?那么,如何在 ubuntu 22.04 LTS 上安装 MySql 5.6?

I didn't find any working solution online.我没有在网上找到任何可行的解决方案。

Can MySql 5.6 run on Ubuntu 22.04? MySql 5.6 可以在 Ubuntu 22.04 上运行吗? Should I downgrade the OS to Ubuntu 18.04?我应该将操作系统降级到 Ubuntu 18.04 吗? or any other solution to run that app in local so I can made some minor changes或在本地运行该应用程序的任何其他解决方案,以便我可以进行一些小的更改

Currently I don't have enough money to upgrade to codeigniter 4 or 3, please try to understand目前我没有足够的钱升级到codeigniter 4或3,请尝试理解

Thanks in advance提前致谢

Ideally, you should install the latest version of apache, mysql and PHP first.理想情况下,您应该首先安装最新版本的 apache、mysql 和 PHP。 You can do that by following some easy steps mentioned in the tutorial below:您可以按照以下教程中提到的一些简单步骤来做到这一点:

https://phpcod.com/install-apache-php-mysql-on-ubuntu-22-04/https://phpcod.com/install-apache-php-mysql-on-ubuntu-22-04/

After that, try to find the issues with the Code of your CodeIgnitor script, if any.之后,尝试查找 CodeIgnitor 脚本的代码问题(如果有)。 I don't see any point downgrading your latest Ubuntu to older version我认为将最新的 Ubuntu 降级到旧版本没有任何意义

If in this process, you get errors in CodeIgnitor code, feel free to share the same here.如果在此过程中,您在 CodeIgnitor 代码中遇到错误,请随时在此处分享。 Will check and try to fix the same for you.将检查并尝试为您修复相同的问题。

Hope this helps.希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM