You are here: Re: just installed XAMPP -- have one question... « PHP Programming Language « IT news, forums, messages
Re: just installed XAMPP -- have one question...

Posted by R. Rajesh Jeba Anbiah on 12/18/67 11:50

Frances wrote:
<snip>
> THEN: 1) can I use the same db's I've been using w/4.1 with 5.0?

I guess, yes. But, not sure. You try.

> 2)
> how do I "transfer" the db's that come w/PHP to this installation?

You copy and paste mysql\data directory and then done (hopefully).

> and
> need to find out how to connect to this MySQL installation instead of
> the one that comes w/XAMPP... (what driver does PHP use? I don't see
> driver-connection in PHP code.. all code I see to connect to db is
>
> mysql_connect("localhost","root",""); )
>
> how come no password....

If password is set, you need to use; otherwise no.

>in Java I have to do all this to connect to db:
>
> Class.forName("com.mysql.jdbc.Driver").newInstance();
> DriverManager.getConnection("jdbc:mysql://localhost:3306/<dbName>?user=root&password=<password>");
>
> need to connect to this same db-server w/PHP (can be a diff db, of
> course..) I don't see a password in PHP code to connect, I don't see
> mention of any driver..

You may then need to go for ODBC <http://in.php.net/odbc>

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация