`
diqizhan
  • 浏览: 146360 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Error while performing database login with the mysql...错误

阅读更多
    今日把在家里做的一个小项目拿到公司的电脑准备连接数据库时,有这样一个异常,“Error while performing database login with the mysql Driver:null...”,我百思不得其解,Driver怎么可能会是null的呢。因为公司机子的ip是另外分配的,以为不能用"localhost",就用回分配的地址(cmd->ipconfig查看没有错),还是同样的错(这个地址平时部署其他项目是可以正常连Oracle数据库并可正常被别的机子访问)。我想了一下,自己机子的主机名是改了的,平时自己访问自己机子上部署的项目的话,用改了的主机名或者那个分配的ip都可以正常访问,而别的机子有的既可以通过我改了的主机名又可以通过那个分配的ip访问我的机子,有的则只能同过那个分配的ip访问(大家都在同一个局域网内,奇怪。)。所以我又用回我改了的主机名,还是同样的错,在网上搜了一下,很多人都说是URL的错。最终,我还是用回最原始的"localhost"作为地址才可以。

现在可正确连接数据库的url:jdbc:mysql://localhost:3306/zhiming
分配的ip的url:jdbc:mysql://172.16.25.54:3306/zhiming
改了主机名的url:jdbc:mysql://musoon:3306/zhiming

    可能是因为这次连的mysql是装在我自己本地的机子里,平时部署其他项目的话,数据库都是服务器上(其他机子上)的。
分享到:
评论

相关推荐

    php_6_fast_and_easy_web_development.pdf

    Performing Other Tasks with SQLite. . . . . . . . . . . . . . . . . . . . 528 xvii CONTENTS Appendix GGetting Help. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535 PHP Resources. . . . ....

    Relational.Database.Programming.A.Set-Oriented.Approach.1484

    Learn the best way of writing code to run inside a relational database. This book shows how a holistic and set-oriented approach to database programming can far exceed the performance of the row-by-...

    Dimeric.Virtual.Database.

    In addition, while providing the familiar properties, methods and events of the built-in objects (TDatabase, TQuery, etc.) VDB provides additional simplified methods for performing common tasks....

    PHP.and.MySQL.Recipes.A.Problem-Solution.Approach.1484206061

    Furthermore, this book explains the PHP functionality in detail, including the vastly improved object-oriented capabilities and the new MySQL database extension. PHP and MySQL Recipes will be a useful...

    Great.Teams.16.Things.High.Performing.Organizations.Do.Differently.epub

    Over the last six years, long-time Sports Illustrated associate editor Don Yaeger has been invited by some of the greatest companies in the world to speak about the habits of high-performing ...

    MySql存储过程编程.chm

    Interacting with the Database Section 2.9. Calling Stored Programs from Stored Programs Section 2.10. Putting It All Together Section 2.11. Stored Functions Section 2.12. Triggers Section ...

    Making Games with Python & PyGame.pdf(with code)

    Source Code for Hello World with Pygame ................................................................................ 7 Setting Up a Pygame Program ....................................................

    Learn.Search.Engine.Optimization.With.Smart.Internet.Marketing.Strategies 2018

    One of the most comprehensive SEO optimization books ever published—updated and expanded—of all best-selling SEO books, this is the only one with everything you need. Scroll up, click buy, and get ...

    Thinking in Java 4th Edition

    with the constructor ........... 107 Method overloading .......... 109 Distinguishing overloaded methods .................. 110 Overloading with primitives ....... 111 Overloading on return values ......

    Mastering.Machine.Learning.with.R.

    It demonstrates the power of R and machine learning extensively while highlighting the constraints. Table of Contents Chapter 1. A Process for Success Chapter 2. Linear Regression – The Blocking ...

    mysql基准测试

    The reputation that MySQL has earned as a fast- performing database is one that has come from both independent performance tests as well as daily serving as the backend database for high-volume ...

    Sams.Teach.Yourself.Big.Data.Analytics.with.Microsoft.HDInsight

    With Microsoft HDInsight, business professionals and data analysts can rapidly leverage the power of Hadoop on a flexible, scalable cloud-based platform, using Microsoft's accessible business ...

    Foxit PDF Editor.zip

    pdf修改 Fixed a crash issue which occurs when closing any palette of the five image toolbars within the Image Editor window, or closing the “Select Shading Style” box in the Shading Editor window. ...

    Rails.Angular.Postgres.and.Bootstrap.2nd.Edition

    Create a usable and attractive login form using Bootstrap's styles, while ensuring the database table backing it is secure using Postgres' check constraints. See how creating an advanced Postgres ...

    Microsoft SQL Server 2008 MDX Step by Step Feb 2009

    With this practical, learn-by-doing tutorial, you’ll build the core techniques for using MDX with Analysis Services to deliver high-performance business intelligence solutions. Discover how to: ...

    Percona-XtraDB-Cluster

    Percona XtraDB Cluster is a database clustering solution for MySQL. It ensures high availability, prevents downtime and data loss, and provides linear scalability for a growing environment. Features ...

    SQL Server with C#

    SQL Server is chosen as the main RDBMS, while the database-interface design is demonstrated to work with Oracle as well. The real-life sample application is written in C# using classic Windows Forms....

    Oracle Database 11gR2 Performance Tuning Cookbook(PACKT,2012)

    This fast-paced book offers solutions starting from application design and development, through the implementation of well-performing applications, to the details of deployment and delivering best-...

    Programming with MS VB.NET.pdf

    Module 1: Overview of the Microsoft .NET Platform Overview.................................................................................................................1 What Is the Microsoft ...

Global site tag (gtag.js) - Google Analytics