InnoDB: Attempted to open a previously opened tablespace

基于docker下的mysql, 一直运行的好好的, 而且早上也还运行正常 突然下午mysql就停止无法启动了.


  1. Open my.ini (my.cnf on linux-based systems and Mac)
  2. Look for [mysqld]
  3. Just below [mysqld] insert innodb_force_recovery = 1
  4. Start MySQL Service
  5. Stop MySQL Service
  6. Remove the line from my.ini (innodb_force_recovery = 1)
  7. Start MySQL Service

相关资料

InnoDB: Attempted to open a previously opened tablespace

微信小程序 template添加绑定事件

template.wxml

<view bindtap="clickView" class="tempClass">temp模板</view>

template.js

var temp = {
 clickView: function () {
  console.log("刚刚您点击了temp")
 }
}
export default temp

index.js

const App = getApp()
import tempObj from '../temp/temp'

//index.js
//获取应用实例
var indexObj = {
 onShow() {
  console.log("onShow")
 }
}
indexObj["clickView"] = tempObj.clickView
Page(indexObj)

相关资料

详解微信小程序 template添加绑定事件

微信浏览器记住密码-localStorge

<script type="text/javascript">
        $(document).ready(function () {
            //读取 localStage 本地存储,填充用户名密码,如果自动登录有值直接跳转;    
            //相反,跳转到本页面,等待登陆处理    
            var storage = window.localStorage;
            var username = storage["username"];
            var getPwd = storage["password"];
            console.log(getPwd)
            var getisstroepwd = storage["isstorePwd"];
            if ("yes" == getisstroepwd) {
                $("#username").val(username);
                $("#password").val(getPwd);
                document.getElementById("isRemberPwdId").checked = true;
            }

        })

        $("form").submit( function () {
            login();
        } );
        function login() {
            var username = $("#username").val();
            var userPassWord = $("#password").val();
            console.log(username)
            console.log(userPassWord)
            if (username != "" && userPassWord != "") {

                var storage = window.localStorage;
                //记住密码    
                if (document.getElementById("isRemberPwdId").checked) {
                    //存储到loaclStage      
                    //alert(134);
                    storage["username"] = username;
                    storage["password"] = userPassWord;
                    storage["isstorePwd"] = "yes";
                }
                else {
                    storage["username"] = username;
                    storage["isstorePwd"] = "no";
                }
            }
        }

</script>