• 打赏 jQuery火箭图标返回顶部代码</h1> <hr> <span class="pre-scrollable"><div id="cnblogs_post_body" class="blogpost-body"> <p>1打开mysql.exe和mysqld.exe所在的文件夹,复制路径地址</p> <p><img src="https://img2018.cnblogs.com/blog/1430251/201810/1430251-20181028195346598-1465117648.png" alt="" /></p> <p>输入命令  mysqld --skip-grant-tables  回车,此时就跳过了mysql的用户验证。注意输入此命令之后命令行就无法操作了,此时可以再打开一个新的命令行。注意:在输入此命令之前先在任务管理器中结束mysqld.exe进程,确保mysql服务器端已结束运行。</p> <p><img src="https://img2018.cnblogs.com/blog/1430251/201810/1430251-20181028195505400-99633360.png" alt="" /></p> <p><img src="https://img2018.cnblogs.com/blog/1430251/201810/1430251-20181028195604542-207983265.png" alt="" /></p> <p> 输入mysql登陆</p> <div class="cnblogs_code"> <pre><span style="color: #008080;user-select:none;"> 1</span> C:UsersAdministrator><span style="color: #000000;">mysql </span><span style="color: #008080;user-select:none;"> 2</span> <span style="color: #000000;">Welcome to the MySQL monitor. Commands end with ; or g. </span><span style="color: #008080;user-select:none;"> 3</span> Your MySQL connection id <span style="color: #0000ff;">is</span> <span style="color: #800080;">3</span> <span style="color: #008080;user-select:none;"> 4</span> Server version: <span style="color: #800080;">5.5</span>.<span style="color: #800080;">40</span><span style="color: #000000;"> MySQL Community Server (GPL) </span><span style="color: #008080;user-select:none;"> 5</span> Copyright (c) <span style="color: #800080;">2000</span>, <span style="color: #800080;">2014</span>, Oracle and/<span style="color: #000000;">or its affiliates. All rights reserved. </span><span style="color: #008080;user-select:none;"> 6</span> Oracle <span style="color: #0000ff;">is</span> a registered trademark of Oracle Corporation and/<span style="color: #000000;">or its </span><span style="color: #008080;user-select:none;"> 7</span> <span style="color: #000000;">affiliates. Other names may be trademarks of their respective </span><span style="color: #008080;user-select:none;"> 8</span> <span style="color: #000000;">owners. </span><span style="color: #008080;user-select:none;"> 9</span> Type <span style="color: #800000;">'</span><span style="color: #800000;">help;</span><span style="color: #800000;">'</span> or <span style="color: #800000;">'</span><span style="color: #800000;">h</span><span style="color: #800000;">'</span> <span style="color: #0000ff;">for</span> help. Type <span style="color: #800000;">'</span><span style="color: #800000;">c</span><span style="color: #800000;">'</span><span style="color: #000000;"> to clear the current input statement. </span><span style="color: #008080;user-select:none;">10</span> mysql></pre> </div> <div class="cnblogs_code"> <pre><span style="color: #008080;user-select:none;"> 1</span> mysql><span style="color: #000000;"> show databases; </span><span style="color: #008080;user-select:none;"> 2</span> +--------------------+ <span style="color: #008080;user-select:none;"> 3</span> | Database | <span style="color: #008080;user-select:none;"> 4</span> +--------------------+ <span style="color: #008080;user-select:none;"> 5</span> | information_schema | <span style="color: #008080;user-select:none;"> 6</span> | itcastoa0720 | <span style="color: #008080;user-select:none;"> 7</span> | kingoa | <span style="color: #008080;user-select:none;"> 8</span> | mysql | <span style="color: #008080;user-select:none;"> 9</span> | performance_schema | <span style="color: #008080;user-select:none;">10</span> | qin | <span style="color: #008080;user-select:none;">11</span> | student | <span style="color: #008080;user-select:none;">12</span> | test | <span style="color: #008080;user-select:none;">13</span> +--------------------+ <span style="color: #008080;user-select:none;">14</span> <span style="color: #800080;">8</span> rows <span style="color: #0000ff;">in</span> <span style="color: #0000ff;">set</span> (<span style="color: #800080;">0.01</span><span style="color: #000000;"> sec) </span><span style="color: #008080;user-select:none;">15</span> <span style="color: #008080;user-select:none;">16</span> mysql><span style="color: #000000;"> use mysql </span><span style="color: #008080;user-select:none;">17</span> <span style="color: #000000;">Database changed </span><span style="color: #008080;user-select:none;">18</span> mysql><span style="color: #000000;"> show tables; </span><span style="color: #008080;user-select:none;">19</span> +---------------------------+ <span style="color: #008080;user-select:none;">20</span> | Tables_in_mysql | <span style="color: #008080;user-select:none;">21</span> +---------------------------+ <span style="color: #008080;user-select:none;">22</span> | columns_priv | <span style="color: #008080;user-select:none;">23</span> | db | <span style="color: #008080;user-select:none;">24</span> | <span style="color: #0000ff;">event</span> | <span style="color: #008080;user-select:none;">25</span> | func | <span style="color: #008080;user-select:none;">26</span> | general_log | <span style="color: #008080;user-select:none;">27</span> | help_category | <span style="color: #008080;user-select:none;">28</span> | help_keyword | <span style="color: #008080;user-select:none;">29</span> | help_relation | <span style="color: #008080;user-select:none;">30</span> | help_topic | <span style="color: #008080;user-select:none;">31</span> | host | <span style="color: #008080;user-select:none;">32</span> | ndb_binlog_index | <span style="color: #008080;user-select:none;">33</span> | plugin | <span style="color: #008080;user-select:none;">34</span> | proc | <span style="color: #008080;user-select:none;">35</span> | procs_priv | <span style="color: #008080;user-select:none;">36</span> | proxies_priv | <span style="color: #008080;user-select:none;">37</span> | servers | <span style="color: #008080;user-select:none;">38</span> | slow_log | <span style="color: #008080;user-select:none;">39</span> | tables_priv | <span style="color: #008080;user-select:none;">40</span> | time_zone | <span style="color: #008080;user-select:none;">41</span> | time_zone_leap_second | <span style="color: #008080;user-select:none;">42</span> | time_zone_name | <span style="color: #008080;user-select:none;">43</span> | time_zone_transition | <span style="color: #008080;user-select:none;">44</span> | time_zone_transition_type | <span style="color: #008080;user-select:none;">45</span> | user | <span style="color: #008080;user-select:none;">46</span> +---------------------------+ <span style="color: #008080;user-select:none;">47</span> <span style="color: #800080;">24</span> rows <span style="color: #0000ff;">in</span> <span style="color: #0000ff;">set</span> (<span style="color: #800080;">0.01</span><span style="color: #000000;"> sec) </span><span style="color: #008080;user-select:none;">48</span> <span style="color: #008080;user-select:none;">49</span> mysql> <span style="color: #0000ff;">select</span> user,host,password <span style="color: #0000ff;">from</span><span style="color: #000000;"> user; </span><span style="color: #008080;user-select:none;">50</span> +------+-----------+-------------------------------------------+ <span style="color: #008080;user-select:none;">51</span> | user | host | password | <span style="color: #008080;user-select:none;">52</span> +------+-----------+-------------------------------------------+ <span style="color: #008080;user-select:none;">53</span> | root | localhost | *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B | <span style="color: #008080;user-select:none;">54</span> +------+-----------+-------------------------------------------+ <span style="color: #008080;user-select:none;">55</span> <span style="color: #800080;">1</span> row <span style="color: #0000ff;">in</span> <span style="color: #0000ff;">set</span> (<span style="color: #800080;">0.00</span><span style="color: #000000;"> sec) </span><span style="color: #008080;user-select:none;">56</span> <span style="color: #008080;user-select:none;">57</span> mysql> update user <span style="color: #0000ff;">set</span> password=password(<span style="color: #800000;">'</span><span style="color: #800000;">123456</span><span style="color: #800000;">'</span>) <span style="color: #0000ff;">where</span> user=<span style="color: #800000;">'</span><span style="color: #800000;">root</span><span style="color: #800000;">'</span> and host=<span style="color: #800000;">'</span><span style="color: #800000;">l</span> <span style="color: #008080;user-select:none;">58</span> ocalhost<span style="color: #800000;">'</span><span style="color: #800000;">;</span> <span style="color: #008080;user-select:none;">59</span> Query OK, <span style="color: #800080;">1</span> row affected (<span style="color: #800080;">0.00</span><span style="color: #000000;"> sec) </span><span style="color: #008080;user-select:none;">60</span> Rows matched: <span style="color: #800080;">1</span> Changed: <span style="color: #800080;">1</span> Warnings: <span style="color: #800080;">0</span> <span style="color: #008080;user-select:none;">61</span> <span style="color: #008080;user-select:none;">62</span> mysql> <span style="color: #0000ff;">select</span> user,host,password <span style="color: #0000ff;">from</span><span style="color: #000000;"> user; </span><span style="color: #008080;user-select:none;">63</span> +------+-----------+-------------------------------------------+ <span style="color: #008080;user-select:none;">64</span> | user | host | password | <span style="color: #008080;user-select:none;">65</span> +------+-----------+-------------------------------------------+ <span style="color: #008080;user-select:none;">66</span> | root | localhost | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 | <span style="color: #008080;user-select:none;">67</span> +------+-----------+-------------------------------------------+ <span style="color: #008080;user-select:none;">68</span> <span style="color: #800080;">1</span> row <span style="color: #0000ff;">in</span> <span style="color: #0000ff;">set</span> (<span style="color: #800080;">0.00</span><span style="color: #000000;"> sec) </span><span style="color: #008080;user-select:none;">69</span> <span style="color: #008080;user-select:none;">70</span> mysql></pre> </div> <p>重新打开一个cmd命令窗口,测试</p> <div class="cnblogs_code"> <pre><span style="color: #008080;user-select:none;"> 1</span> C:UsersAdministrator>mysql -u root -<span style="color: #000000;">p123456 </span><span style="color: #008080;user-select:none;"> 2</span> <span style="color: #000000;">Welcome to the MySQL monitor. Commands end with ; or g. </span><span style="color: #008080;user-select:none;"> 3</span> Your MySQL connection id <span style="color: #0000ff;">is</span> <span style="color: #800080;">7</span> <span style="color: #008080;user-select:none;"> 4</span> Server version: <span style="color: #800080;">5.5</span>.<span style="color: #800080;">40</span><span style="color: #000000;"> MySQL Community Server (GPL) </span><span style="color: #008080;user-select:none;"> 5</span> <span style="color: #008080;user-select:none;"> 6</span> Copyright (c) <span style="color: #800080;">2000</span>, <span style="color: #800080;">2014</span>, Oracle and/<span style="color: #000000;">or its affiliates. All rights reserved. </span><span style="color: #008080;user-select:none;"> 7</span> <span style="color: #008080;user-select:none;"> 8</span> Oracle <span style="color: #0000ff;">is</span> a registered trademark of Oracle Corporation and/<span style="color: #000000;">or its </span><span style="color: #008080;user-select:none;"> 9</span> <span style="color: #000000;">affiliates. Other names may be trademarks of their respective </span><span style="color: #008080;user-select:none;">10</span> <span style="color: #000000;">owners. </span><span style="color: #008080;user-select:none;">11</span> <span style="color: #008080;user-select:none;">12</span> Type <span style="color: #800000;">'</span><span style="color: #800000;">help;</span><span style="color: #800000;">'</span> or <span style="color: #800000;">'</span><span style="color: #800000;">h</span><span style="color: #800000;">'</span> <span style="color: #0000ff;">for</span> help. Type <span style="color: #800000;">'</span><span style="color: #800000;">c</span><span style="color: #800000;">'</span><span style="color: #000000;"> to clear the current input statement. </span><span style="color: #008080;user-select:none;">13</span> <span style="color: #008080;user-select:none;">14</span> mysql></pre> </div> </div> </span> </li> <li class="list-group-item ul-li"> <b>相关阅读:</b><br> <nobr> <a href="nightfallsad-p-12994910.html" target="_blank">关于 flutter_boost Attempt to invoke virtual method ' com.idlefish.flutterboost.FlutterViewContainerManager.getCurrentTopRecord()' on a null object reference</a> <br/><a href="nightfallsad-p-12964515.html" target="_blank">关于 flutter_boost TextField的autofocus导致页面闪动回弹</a> <br/><a href="nightfallsad-p-12956639.html" target="_blank">关于 flutter ios打开一个带有百度地图的native页面闪退Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread</a> <br/><a href="nightfallsad-p-12930798.html" target="_blank">关于 flutter_boost demo 隐藏导航栏后push flutter page 右滑返回失效</a> <br/><a href="nightfallsad-p-12888450.html" target="_blank">关于 flutter 只能用armeabi单架构的问题</a> <br/><a href="Duqinqin-p-3690594.html" target="_blank">关于数组的length属性</a> <br/><a href="MTXue-p-10420071.html" target="_blank">python 常见问题:导入py文件易忽略问题</a> <br/><a href="MTXue-p-6529419.html" target="_blank">IE浏览器兼容性测试 文档模式,浏览器模式</a> <br/><a href="yangshangjin-p-6951818.html" target="_blank">关于事件mouseover ,mouseout ,mouseenter,mouseleave的区别</a> <br/><a href="stevenwuzheng-p-5583778.html" target="_blank">[BS-28] iOS中分页的几种算法</a> <br/> </nobr> </li> <li class="list-group-item from-a mb-2"> 原文地址:https://www.cnblogs.com/liang-io/p/9866860.html </li> </ul> </div> <!-- 右侧开始 --> <div class="col-lg-4 col-sm-12"> <ul class="list-group" style="word-break:break-all;"> <li class="list-group-item ul-li-bg" aria-current="true"> 最新文章 </li> <li class="list-group-item ul-li"> <nobr> <a href="baoluqi-p-3745685.html" target="_blank">最小生成树(修路)</a> <br/><a href="baoluqi-p-3745677.html" target="_blank">字母最小生成树</a> <br/><a href="baoluqi-p-3745635.html" target="_blank">floyd算法汇率</a> <br/><a href="baoluqi-p-3745546.html" target="_blank">floyd算法</a> <br/><a href="baoluqi-p-3745544.html" target="_blank">floyd算法 青蛙</a> <br/><a href="baoluqi-p-3745538.html" target="_blank">昂贵的聘礼</a> <br/><a href="baoluqi-p-3745534.html" target="_blank">货币兑换</a> <br/><a href="baoluqi-p-3745494.html" target="_blank">简单模拟与2993相反</a> <br/><a href="zhli-p-3642639.html" target="_blank">memcache初探</a> <br/><a href="zhli-p-3621028.html" target="_blank">认识云计算之IaaS-OpenStack</a> <br/> </nobr> </li> </ul> <ul class="list-group pt-2" style="word-break:break-all;"> <li class="list-group-item ul-li-bg" aria-current="true"> 热门文章 </li> <li class="list-group-item ul-li"> <nobr> <a href="zhli-p-3507267.html" target="_blank">linux系列(1)-tar、cat命令练习</a> <br/><a href="zhli-p-3449256.html" target="_blank">MongoDb</a> <br/><a href="zhli-p-3306500.html" target="_blank">log4j操作数据库</a> <br/><a href="zhli-p-3282432.html" target="_blank">tomcat另外一种部署方式</a> <br/><a href="zhli-p-3185979.html" target="_blank">SpringMVC、Maven学习笔录</a> <br/><a href="nightfallsad-p-13174263.html" target="_blank">关于纯flutter 工程 error: Build input file cannot be found: '/Users/xxx/Documents/.pub-cache/hosted/pub.flutter-io.cn/webview_flutter-0.3.21/ios/Classes/JavaScriptChannelHandler.m'</a> <br/><a href="nightfallsad-p-13086353.html" target="_blank">关于 flutter_module集成到native 上传App Store时提示No suitable application records were found. Verify your bundle identifier 'io.flutter.flutter' is correct</a> <br/><a href="nightfallsad-p-13156377.html" target="_blank">关于 flutter android appbar下面有一根分割线,把elevation设为0也有</a> <br/><a href="nightfallsad-p-13038698.html" target="_blank">关于 flutter_boost 第一次push页面的时候会有个白色屏闪一下</a> <br/><a href="nightfallsad-p-13036793.html" target="_blank">关于 flutter_boost监听flutter页面生命周期</a> <br/> </nobr> </li> </ul> </div> </div> </div> <!-- 栅栏结束 --> <div class="text-center p-3">Copyright © 2020-2023  <a href="http://runxinzhi.com" target="_blank">润新知</a> <!-- 引入底部 --> <!-- 底部开始 --> <!-- 百度自动推送js --> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> <!-- 百度自动推送js --> <!-- 底部结束 --> </div> <script src="https://common.cnblogs.com/scripts/jquery-2.2.0.min.js"></script> <script src="https://www.cnblogs.com/js/blog-common.min.js"></script> <script src="http://common.cnblogs.com/script/encoder.js"></script> <!-- <script src="/public/js/blog-common.min.js"></script> --> <!-- <script src="/public/js/details.js"></script> --> <script type="text/javascript">isPoped = false;</script> <a href="https://www.aliyun.com/activity?userCode=smyam3bm" id="redirect_url"></a> <a href="/liang-io-p-9866860.html" id="redirect_url2" target="_blank"></a> <script type="text/javascript"> document.onclick = function() { if (!isPoped) { document.getElementById("redirect_url").click(); document.getElementById("redirect_url2").click(); isPoped = true; } } </script> </body> </html>