|
Posted by Botan Guner on 11/14/06 11:30
Phpmyadmin is a web base mysql databse administration tool, it doesn't
matter where u install it under your webroot. It helps you to
adminstrate mysql db using a web browser insted of using command line
mysql> tool.
When you create a db using phpmyadmin or in any other way, mysql stores
the data files in a directory (Data Directory) which is specified in
my.ini file.
After adding a user with appropriate privileges you can connect to
mysql localy or remotely.
If you are going to use only one table you can select that db after
connecting to mysql like,
//copy paste from php manual
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
if (!$link) {
die('Not connected : ' . mysql_error());
}
// make foo the current db
$db_selected = mysql_select_db('foo', $link);
if (!$db_selected) {
die ('Can\'t use foo : ' . mysql_error());
}
you can use mysql_db_query() function to send a query to terms database
while acct is selected.
You may want to look at php manuel...
[Back to original message]
|