Jump to content


Photo

java to SQL


  • Please log in to reply
1 reply to this topic

#1 deathadder

deathadder

    Advanced Member

  • Members
  • PipPipPip
  • 87 posts

Posted 23 June 2013 - 07:57 AM

Hi, i need to connect my java application to my SQL server, i have the code but i have the problem of i don't know what to change localhost to, as i normally use localhost on my website, i don't know what i should change it to.

 

help would be much appreciated.



#2 Muddy_Funster

Muddy_Funster

    Advanced Member

  • Members
  • PipPipPip
  • 2,993 posts

Posted 17 July 2013 - 08:28 AM

more information on your setup is required to answer this question.


A simple password hash :

function makePass($word=''){
  $dbSalt = '$2a$07$'.substr(hash('whirlpool',$word),0,22);
  $dbPass = crypt($word, $dbSalt);
 return substr($dbPass,12);
}



My SQL/PHP Blog




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com