Giter Site home page Giter Site logo

gyx.js.org's People

Contributors

yourtion avatar

Watchers

James Cloos avatar  avatar

gyx.js.org's Issues

只更新字段为NULL的记录

在MySQL中只更新数据为NULL的字段:

IFNULL(`upload_time`,NOW())

例子:

UPDATE demo SET upload_time =IFNULL(`upload_time`,NOW()), username = 'Yourtion'  WHERE (id = 1);

MySQL 8 报错 'caching_sha2_password' cannot be loaded 处理方法

安装MySQL8 后,部分客户端会遇到报错:

error 2059: Authentication plugin 'caching_sha2_password' cannot be loaded: caching_sha2_password.so: cannot open shared object file: No such file

处理方法:

1、更新 my.cnf 文件后重启MySQL

[mysqld]
default_authentication_plugin=mysql_native_password

2、 兼容新老版本的认证方式

#修改加密规则 
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root' PASSWORD EXPIRE NEVER; 

#更新一下用户的密码 
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; 

#刷新权限
FLUSH PRIVILEGES; 

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.