Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6169137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:48:19+00:00 2026-05-23T22:48:19+00:00

I have PHPMyAdmin connecting to a remote MySQL server, using those parameters: $cfg[‘blowfish_secret’] =

  • 0

I have PHPMyAdmin connecting to a remote MySQL server, using those parameters:

$cfg['blowfish_secret'] = 'ba17c1ec07d65003';
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '*remoteServer*:3306';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['controluser'] = '*user*';
$cfg['Servers'][$i]['controlpass'] = '*password*';

I’m trying to connect to this MySQL server in Java, neither of those work:

final String url ="jdbc:mysql://*remoteServer*:3306/*user*";
Connection conn = DriverManager.getConnection(url, "*user*", "*password*");

and, with “:3306” removed :

final String url ="jdbc:mysql://*remoteServer*/*user*";
Connection conn = DriverManager.getConnection(url, "*user*", "*password*");

I’m getting this error:

SQLException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago.
The driver has not received any packets from the server.
SQLState:     08S01
VendorError:  0
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago.
The driver has not received any packets from the server.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    ...

I think it comes from the “blowfish_secret” (which is just a random cookie) and “auth_type”=”cookie” not being accounted for in Java.

How do I fix this?

Also, do I need to tell MySQL that he has to accept to talk to the jdbc driver? (if yes, I’m screwed, I don’t have access to the MySQL config files)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:48:21+00:00Added an answer on May 23, 2026 at 10:48 pm

    blowfish_secret and auth_type are used only as part of the phpmyadmin software, they have nothing to do with a mysql connection.

    Do you have firewalls allowing access to MySQL from the machine running java and do you have grants set up to access that user from that specific host?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a mysql database which I support using phpMyAdmin. The website this is
I have just installed phpMyAdmin on my new Fedora Core 10 dedicated server. I
I have a small ajax application built with php. Using phpMyAdmin I have set
The VPS I was using used to have phpMyAdmin pre-installation option but removed it
Im using phpmyadmin for a website i'm creating and have a question about a
I use PhpMyAdmin to setup mysql tables and such. I also have root (full)
So I have a MySQL database set up on a Debian server and it
I have mysql tables with utf8 encoding. The Data Backend and phpmyadmin are also
Any help on re-ordering the columns in MySQL using phpMyAdmin? Is it called cardinality?
I'm working in phpMyAdmin 3.3.9 with mySQL 5.5.8. I have a database with myISAM

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.