phalapi / notorm Goto Github PK
View Code? Open in Web Editor NEW基于NotORM类库的优化版本,专门用于PhalApi开源接口框架。
License: GNU General Public License v3.0
基于NotORM类库的优化版本,专门用于PhalApi开源接口框架。
License: GNU General Public License v3.0
关于 /phalapi/notorm 2.6.1 class NotORM_Result
vendor里保存的有NotORM_Result::queryRow() 但是在这里查询就没有了。
同时查询最新的 /phalapi/notorm 2.12.1 class NotORM_Result
也没有了方法NotORM_Result::queryRow()
主要是想确认这的方法有替代方法吗?
ecshop api 里很多调用的是这个方法。
谢谢一直的努力。
我在使用的时候发现NotORM对 MySQL8 的支持好像不太好,去它的github库找资料,发现太久没有更新了。我遇到的问题表现在:
系统参数:MySQL8.0.16 ,mac10.14.5,PHP7.2.18,PhalApi 2.6.1。 在Windows中连接mysql5.6则正常。
MySQL的密码加密方式,三种都试过:caching_sha2_password mysql_native_password sha256_password
用 命令行 中的 mysql -u root -p -h 127.0.0.1 输入密码就可以进入管理Mysql。
但是在dbs.php中配置如下时,无法连接到数据库。
`
'servers' => array(
'db_master' => array( //服务器标记
'host' => '127.0.0.1', //数据库域名
'name' => 'wxwork', //数据库名字
'user' => 'root', //数据库用户名
'password' => 'root', //数据库密码
'port' => 3306, //数据库端口
'charset' => 'UTF8', //数据库字符集
// 'usessl' => true,
),
),
'tables' => array(
//通用路由
'__default__' => array(
'prefix' => '',
'key' => 'id',
'map' => array(
array('db' => 'db_master'),
),
),
`
错误提示是:
{"ret":500,"data":{},"msg":"服务器运行错误: 数据库db_master连接失败"}
我怀疑是不是因为 MySQL8强制使用 ssl 连接,但是我不知道怎样加这个参数。
所以请教,谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.