<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [TOC] ### 創建用戶用來遠程連接 ``` GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; flush privileges; ``` >第一個itoffice表示用戶名,%表示所有的電腦都可以連接,也可以設置某個ip地址運行連接,第二個itoffice表示密碼)。 執行 flush privileges: ``` flush privileges; ``` * * * * * ### 安裝mysql 初始化 ``` bin/mysqld --user=mysql --basedir=/usr/local/mysql/ --datadir=/usr/local/mysql/data/ --secure-file-priv=/root/ --initialize 注意: 在初始化時如果加上 --initial-insecure, 則會創建空密碼的 root@localhost 賬號 --secure-file-priv 指定密碼文件夾位置 對應文件夾下就會有 .mysql_secret 文件(5.6以前) 之后的會在log中提示 A temporary password is generated for root@localhost: (U?0T,6,qQ2: (U?0T,6,qQ2: 這個就是第一次用來登陸mysql的密碼一定要記住 ``` * * * * * ### 修改密碼 今天我們主要是講一下關于linux忘記mysql密碼處理方法,下面提供了5種linux忘記mysql密碼找回方法哦。 #### 方法一(先進入root權限): ``` # /etc/init.d/mysql stop # mysqld_safe --user=mysql --skip-grant-tables --skip-networking & # mysql -u root mysql> update user set password=password("newpassword") where user='root'; mysql> flush privileges; mysql> quit # /etc/init.d/mysql restart # mysql -uroot -p enter password: <輸入新設的密碼newpassword> mysql> ``` * * * * * #### 方法二: 直接使用/etc/mysql/debian.cnf文件中[client]節提供的用戶名和密碼: ``` # mysql -udebian-sys-maint -p enter password: <輸入[client]節的密碼> mysql> update user set password=password("newpassword") where user=root; mysql> flush privileges; mysql> quit # mysql -uroot -p enter password: <輸入新設的密碼newpassword> ``` * * * * *
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看