Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MariaDB提示版本不大于5.7 #4

Open
mygithello opened this issue Jan 20, 2024 · 4 comments
Open

MariaDB提示版本不大于5.7 #4

mygithello opened this issue Jan 20, 2024 · 4 comments

Comments

@mygithello
Copy link

MariaDB 10.1相当于MySQL 5.7,然而我这里使用10.6.14-MariaDB,会提示mysql 版本没有大于5.7提示

@tsxcw
Copy link
Owner

tsxcw commented Jan 20, 2024

如果可以的话,临时修改方式可以在程序的/public/install.php中修改程序的判断

if (!version_compare(mysqli_get_server_info($conn), '5.7', '>=')) {
            $error = '<div style="text-align: center">数据库相关错误,详细信息如下</div>' . "<div style='margin-top:15px;text-align: center'>数据库版本低于5.7,请升级数据库版本至5.7及以上版本!</div>";
        }

中的5.7改为1.0,来跳过验证,但是请确保MariaDb版本支持数据表字段json类型即可。

@tsxcw
Copy link
Owner

tsxcw commented Jan 20, 2024

我会在后续对安装的判断做一些更加详细的判断,针对mysql和maria单独处理

@mygithello
Copy link
Author

mygithello commented Jan 21, 2024 via email

@tsxcw
Copy link
Owner

tsxcw commented Jan 21, 2024

新版本已经增加了对Mysql和MariaDB的单独判断。mysql>=5.7, MariaDb>=10.2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants