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

                [TOC] ## windows msi版本安裝 ### 1、下載并完成安裝 ### 2、安裝目錄下添加my.init文件、data文件夾 ```ini [client] port=3306 default-character-set=utf8 [mysqld] # 設置為自己MYSQL的安裝目錄 basedir=C:\Program Files\MySQL\MySQL Server 5.7 # 設置為MYSQL的數據目錄 datadir=C:\Program Files\MySQL\data port=3306 character_set_server=utf8 sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER #開啟查詢緩存 explicit_defaults_for_timestamp=true ``` ### 3、使用管理員權限打開cmd 初始化數據庫文件,初始化成功后,會在datadir目錄下生成一些文件 ``` mysqld --initialize ``` 注冊mysql服務:【將mysqld.exe添加到系統服務里】 ``` # 方式1 mysqld --install # 方式2:使用sc進行添加,注意=號后面有空格 sc create MySQL57 binPath= "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld.exe" start= auto ``` 對應的啟動服務方式: 方式1安裝時,則在服務中手動啟動; 方式2安裝時,可以用命令啟動: ```cmd #MySQL57 為服務名 net start MySQL57 #默認服務名為MYSQL,則 net start MYSQL ``` ### 4、修改密碼 - 跳過授權表,啟動mysql `mysqld --console --skip-grant-tables --shared-memory` - 管理員權限打開另外一個cmd窗口,執行命令`mysql -uroot`,回車后,即可進入mysql。 - 修改密碼: ``` mysql> use mysql; mysql>update MySQL.user set authentication_string=password('root') where user='root'; mysql>flush privileges; mysql>quit; ``` ### 5、問題解決: ```shell PS D:\ProgramForWork\MysqlServer5.7\bin> .\mysqld --initialize mysqld: Could not create or access the registry key needed for the MySQL application to log to the Windows EventLog. Run the application with sufficient privileges once to create the key, add the key manually, or turn off logging for that application. ``` 問題原因:windows操作系統為家庭版,管理員權限問題;使用管理員權限打開`cmd`、清理data下的文件,重試即可。 > 參考安裝教程: > https://blog.csdn.net/qq_35257875/article/details/93530381 > https://blog.csdn.net/qq_41417259/article/details/89716196
                  <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>

                              哎呀哎呀视频在线观看