Giter Club home page Giter Club logo

notorm's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

notorm's Issues

queryRow

关于 /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 里很多调用的是这个方法。

支持 MySQL8.0 的问题

谢谢一直的努力。
我在使用的时候发现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 连接,但是我不知道怎样加这个参数。

所以请教,谢谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.