zoukankan      html  css  js  c++  java
  • Authentication to host '***‘' for user 'root' using method 'mysql_native_password' failed with message: Reading from the stream has failed.

      如下场景:

      一个页面中需要用户填入文字信息,并上传图片,上传图片是单独调用上传文件接口的,当用户上传图片后,马上点保存,就会报错。

      Authentication to host '***‘' for user 'root' using method 'mysql_native_password' failed with message: Reading from the stream has failed.

    其真正原因是图片未上传完全,同时又点了保存,未遵循依赖关系(必须上传完图片,才能点保存提交数据)。

    解决方法:

    1、填完信息后,稍作停顿。

    2、前端添加强制依赖,即在图片上传完之前不允许用户点击保存,可以用进度条等类似方法。

  • 相关阅读:
    HDU 5795
    HDU5783
    HDU 5791
    VK Cup 2016
    Codeforces Round #357 (Div. 2)
    Educational Codeforces Round 15
    HDU5724
    博弈学习 3
    Spring的多配置文件加载
    spring 核心技术
  • 原文地址:https://www.cnblogs.com/qcxdoit/p/8858297.html
Copyright © 2011-2022 走看看