zoukankan      html  css  js  c++  java
  • cygwin mysql forget root password

    此时此刻0526,这个靠谱

    from https://stackoverflow.com/questions/49926467/you-are-using-mariadb-as-an-anonymous-user?noredirect=1

    > update mysql.user set password=password('newpass') where user='root';
    > flush privileges;
    > update mysql.user set plugin='mysql_native_password' where user='root';
    > flush privileges;

    -----------------------------------------------------

    1,mysqld --skip-grant-tables

    2,use mysql

    3,update user set password=password("123") where user="root";

    4,flush privileges;

    -----------------

    1, grant all  on *.* to 'root'@'localhost' identified by '123456';

    --------

    新安装mariadb设置密码

    # mysqladmin -uroot -p password '123456'

    create table huzhtbl (id int , name varchar(100), primary key (id));

    #迁移表

    insert into voh.huzhtbl (select * from huzh.huzhtbl);

  • 相关阅读:
    page指令
    CMD设IP
    JDBC的几种驱动
    Python的闭包使用
    1189. 扫雷游戏
    1287. 递增的三元子序列
    Pip安装使用国内源的两种方法
    Python Classmethod和Staticmethod函数
    Git提交远程仓库
    Git分支管理
  • 原文地址:https://www.cnblogs.com/eiguleo/p/12886744.html
Copyright © 2011-2022 走看看