-
Notifications
You must be signed in to change notification settings - Fork 52
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
Comments
如果可以的话,临时修改方式可以在程序的/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类型即可。 |
我会在后续对安装的判断做一些更加详细的判断,针对mysql和maria单独处理 |
好的,多谢,经修改,已通过校验
… 2024年1月21日 01:20,tushan ***@***.***> 写道:
如果可以的话,临时修改方式可以在程序的/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类型即可。
—
Reply to this email directly, view it on GitHub <#4 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AJMNQ32A3IGI3Y7JP5IM5V3YPP4EJAVCNFSM6AAAAABCDJ7OR6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSGE4DCMJZGM>.
You are receiving this because you authored the thread.
|
新版本已经增加了对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
MariaDB 10.1相当于MySQL 5.7,然而我这里使用10.6.14-MariaDB,会提示mysql 版本没有大于5.7提示
The text was updated successfully, but these errors were encountered: