|
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]
|