Pages

Subscribe:

Ads 468x60px

5/15/11

Connect Java and Database (1) Install XAMPP

Today i'll make an connection between java and database, for the database itself, i'll use XAMPP that can be downloaded in http://www.apachefriends.org/en/xampp-windows.html. And for java and databse connector, i'll use http://dev.mysql.com/downloads/connector/j/.
First of all, install XAMPP on your computer, like this and make an table of database.
 When it's done, double klik XAMPP Control Panel on your dekstop shortcut or from START >> All Program >> Xampp for Windows >> XAMPP Control Panel.
And make sure that the Apache, and MySql is running.
Then let's make a database with MySql, firstly you may access localhost on your webrowser and choose phpmyadmin or http://localhost/phpmyadmin/.




It would shown like this :
There's a warning there that shown there are error in MySQL privileged account. To repair it, click on the “Privilaeges” bar on the top then in “User : root, Host : localhost” choose “edit Privileges” then type your new password on Change Password.
 if there's an error then :
a. Open directory when you install it (C:/Program Files/XAMPP) choose folder : phpMyAdmin then choose config.inc.php (open with notepad).
b. Find line : $cfg['Servers'][$i]['password'] = ' '; type your password then it would be $cfg['Servers'][$i]['password'] = 'your_password';
c. Save your editing
d. Restart your XAMPP (stop then start again..)
e. The error has been fixed

Reference :
http://ayoespot.blogspot.com/2010/01/cara-memberi-password-pada-xampp-for.html

0 comments:

Post a Comment