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);

  • 相关阅读:
    网络编程[28]
    网络编程[30]
    网络编程[20]
    网络编程[29]
    网络编程[19]
    网络编程[15]
    网络编程[12]
    hdu 3802【Ipad,IPhone】
    hdu 2616【Kill the monster】
    hdu 1026【Ignatius and the Princess I】
  • 原文地址:https://www.cnblogs.com/eiguleo/p/12886744.html
Copyright © 2011-2022 走看看