久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='tMKqR'></bdo><ul id='tMKqR'></ul>
  1. <i id='tMKqR'><tr id='tMKqR'><dt id='tMKqR'><q id='tMKqR'><span id='tMKqR'><b id='tMKqR'><form id='tMKqR'><ins id='tMKqR'></ins><ul id='tMKqR'></ul><sub id='tMKqR'></sub></form><legend id='tMKqR'></legend><bdo id='tMKqR'><pre id='tMKqR'><center id='tMKqR'></center></pre></bdo></b><th id='tMKqR'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tMKqR'><tfoot id='tMKqR'></tfoot><dl id='tMKqR'><fieldset id='tMKqR'></fieldset></dl></div>
    <legend id='tMKqR'><style id='tMKqR'><dir id='tMKqR'><q id='tMKqR'></q></dir></style></legend>
    1. <small id='tMKqR'></small><noframes id='tMKqR'>

    2. <tfoot id='tMKqR'></tfoot>

      無法訪問 Sonar MySQL 數據庫 原因:java.sql.SQLExcepti

      Unable to access Sonar MySQL database Caused by: java.sql.SQLException: Access denied for user #39;sonar#39;@#39;glassfishdev.ccs.local#39; (using password: YES)(無法訪問 Sonar MySQL 數據庫 原因:java.sql.SQLException:用戶 sonar@gl

        <i id='z7mbN'><tr id='z7mbN'><dt id='z7mbN'><q id='z7mbN'><span id='z7mbN'><b id='z7mbN'><form id='z7mbN'><ins id='z7mbN'></ins><ul id='z7mbN'></ul><sub id='z7mbN'></sub></form><legend id='z7mbN'></legend><bdo id='z7mbN'><pre id='z7mbN'><center id='z7mbN'></center></pre></bdo></b><th id='z7mbN'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='z7mbN'><tfoot id='z7mbN'></tfoot><dl id='z7mbN'><fieldset id='z7mbN'></fieldset></dl></div>

        <tfoot id='z7mbN'></tfoot>
          <bdo id='z7mbN'></bdo><ul id='z7mbN'></ul>
        • <small id='z7mbN'></small><noframes id='z7mbN'>

            • <legend id='z7mbN'><style id='z7mbN'><dir id='z7mbN'><q id='z7mbN'></q></dir></style></legend>
                <tbody id='z7mbN'></tbody>
              • 本文介紹了無法訪問 Sonar MySQL 數據庫 原因:java.sql.SQLException:用戶 'sonar'@'glassfishdev.ccs.local' 拒絕訪問(使用密碼:YES)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在嘗試將聲納添加到我的持續集成構建系統中.我使用 ANT 作為我的構建腳本,我使用 sonar-ant-task-1.1.jar 作為聲納根據我在 SVN 中的源代碼生成報告.

                I am trying to add Sonar to my Continuous Integration build system. I am using ANT as my build script and I am using the sonar-ant-task-1.1.jar for sonar to generate the reports based on my source code in SVN.

                問題當構建運行并執行聲納螞蟻任務時,我得到如下異常:

                Problem When the build runs and hits the sonar ant task I get the exception as follows:

                Caused by: java.sql.SQLException: Access denied for user 'sonar'@'glassfishdev.ccs.local' (using password: YES)
                at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075)
                at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3566)
                at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3498)
                at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:919)
                at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4004)
                at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1284)
                at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2312)
                at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
                at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
                at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
                at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
                at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
                at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
                at org.sonar.jpa.session.DriverProxy.connect(DriverDatabaseConnector.java:160)
                at java.sql.DriverManager.getConnection(DriverManager.java:582)
                at java.sql.DriverManager.getConnection(DriverManager.java:185)
                at org.sonar.jpa.session.DriverDatabaseConnector.getConnection(DriverDatabaseConnector.java:95)
                at org.sonar.jpa.session.AbstractDatabaseConnector.testConnection(AbstractDatabaseConnector.java:185)
                ... 40 more
                

                我做了什么

                1.安裝 MySQL 數據庫.

                1. Install MySQL database.

                2. 使用聲納安裝中提供的腳本創建聲納數據庫、聲納用戶并授予權限

                2. Create the sonar database, sonar user, and grant permissions by using the script provided in the sonar installation

                **CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci;    
                CREATE USER 'sonar' IDENTIFIED BY 'sonar';
                GRANT ALL ON sonar.* TO 'sonar'@'%' IDENTIFIED BY 'sonar';
                GRANT ALL ON sonar.* TO 'sonar'@'localhost' IDENTIFIED BY 'sonar';
                FLUSH PRIVILEGES;**
                

                3. 添加了 跟隨到我的構建腳本

                3. Added the following to my build script

                4. 在 Jenkins Freestyle 構建項目中添加了以下外部變量

                4. Added the following external variables in Jenkins Freestyle build project

                sonar.jdbc.url=jdbc:mysql://10.120.21.12:3306/sonar?useUnicode=true&characterEncoding=utf8
                    sonar.jdbc.driverClassName=com.mysql.jdbc.Driver
                    sonar.jdbc.username=sonar
                    sonar.jdbc.password=sonar
                    sonar.host.url=http://10.120.21.12:9000/
                

                5.我還可以通過我的 sql 客戶端工具連接到數據庫,以驗證數據庫、用戶和權限語句是否正確執行.

                5. I was also available to connect to the database through my sql client tool to verify that the database, user and permissions statements were executed correctly.

                然而,當 Jenkins 運行構建時,它似乎不知道如何連接到 MySQL 數據庫.

                However when Jenkins runs the build it does not seem to know how to connect to the MySQL database.

                有什么想法嗎?

                推薦答案

                解決方案是運行以??下命令:

                The solution was to run the following command:

                全部授予 *.* 給 'sonar'@'%';

                這篇關于無法訪問 Sonar MySQL 數據庫 原因:java.sql.SQLException:用戶 'sonar'@'glassfishdev.ccs.local' 拒絕訪問(使用密碼:YES)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數根據 N 個先前值來決定接下來的 N 個行)
                reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達式的結果;條款?)
                Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數的 ignore 選項是忽略整個事務還是只是有問題的行?) - IT屋-程序員軟件開發技
                Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時出錯,使用 for 循環數組)
                pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調用 o23.load 時發生錯誤 沒有合適的驅動程序)
                How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數據庫表作為 Spark 數據幀讀取?)
              • <legend id='YEg3W'><style id='YEg3W'><dir id='YEg3W'><q id='YEg3W'></q></dir></style></legend>

                  <small id='YEg3W'></small><noframes id='YEg3W'>

                    • <i id='YEg3W'><tr id='YEg3W'><dt id='YEg3W'><q id='YEg3W'><span id='YEg3W'><b id='YEg3W'><form id='YEg3W'><ins id='YEg3W'></ins><ul id='YEg3W'></ul><sub id='YEg3W'></sub></form><legend id='YEg3W'></legend><bdo id='YEg3W'><pre id='YEg3W'><center id='YEg3W'></center></pre></bdo></b><th id='YEg3W'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='YEg3W'><tfoot id='YEg3W'></tfoot><dl id='YEg3W'><fieldset id='YEg3W'></fieldset></dl></div>

                        <tfoot id='YEg3W'></tfoot>
                        • <bdo id='YEg3W'></bdo><ul id='YEg3W'></ul>

                            <tbody id='YEg3W'></tbody>
                          主站蜘蛛池模板: 亚洲一区二区高清 | 国产成人艳妇aa视频在线 | 在线观看视频h | 色偷偷人人澡人人爽人人模 | 欧美一区二区三区,视频 | 国产精品国产三级国产播12软件 | 久久久久久免费毛片精品 | 精品福利视频一区二区三区 | 亚洲三区视频 | 亚洲一区二区三区高清 | 精品国产色 | 欧美激情一区二区 | 男人天堂av网 | 成人久久久 | 亚洲视频欧美视频 | 激情欧美日韩一区二区 | 91精品久久久久久久久 | 亚洲午夜精品 | 欧美激情精品久久久久久变态 | 97视频在线观看网站 | 国产在线一区二区三区 | 久久精品久久久久久 | 日韩成人在线播放 | 91av视频在线免费观看 | 日韩精品一区二区三区中文字幕 | 欧美精品久久久久久久久久 | 中文字幕高清视频 | 国产清纯白嫩初高生在线播放视频 | 国产精品久久久爽爽爽麻豆色哟哟 | 最新免费视频 | 一区二区激情 | 一区二区三区四区av | 免费精品久久久久久中文字幕 | 久久国产一区 | 黄视频网站免费观看 | 二区av | 色综合国产 | 色一情一乱一伦一区二区三区 | 综合国产在线 | 999观看免费高清www | 伊人久久精品一区二区三区 |