Hi,
Thanks a lot for help.
When I set up password for user table using mysql, I couldnt get the password what I set, instead of getting one password created by mysql -- very long letter.
Do you think that it is neccesary to edit .sql file in www home directory like /usr/local/apache/htdocs to access mysql database via web interface? Or just store everything in mysql server and retrieve data via PHP code?
In mysql user table, we do have localhost as host, also lot of other names as host too, but don't have nobody as user. However, we do have lot of kinds of users.
Here I am attached couple of files stored in www home directory:
- //database.php
<?php
$hostName="localhost";
$userName="pathmicroarray";
$password="pathmicroarray";
$databaseName="searchdb";
$userTableName="sample, gene, GB"; // some tables name for searchdb
$PHP_AUTH_USER="";
$PHP_AUTH_USER="";
?>
- database.sql // databasetables
MySQL dump 6.4
Host: localhost Database:searchdb
create database searchdb;
use searchdb;
#
Table structure for 'GeneFeature"
#
CREATE TABLE Gene ( //
CREATE TABLE sample (// cut content
CREATE TABLE GB (//
....
- use mysql;
insert into user
values('%','pathmicroarray','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','
Y','Y');
flush privileges;
insert into user
values('localhost','pathmicroarray','','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','
Y','Y','Y','Y');
flush privileges;
UPDATE user SET Password=PASSWORD('pathmicroarray') WHERE
user='pathmicroarray';
FLUSH PRIVILEGES;
sorry for the long email.
Once again, appreciate your advice.
Hui