View Single Post
Old 01-10-2003, 08:29 PM   #8 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
$db is the name of the connection variable.

lets say your database name is "data" and your username is "trevor" and your pass is "trevor00"

have you created a user in your mysql database with the permissions to access that database? also, have you created the actual databse?

create database
Code:
create database trevor;
create user with administrative permissions
Code:
grant all privileges on *.* to trevor@localhost identified by 'trevor00';
now that connection script should work assuming that it resides on the same server as mysql.
sde is offline   Reply With Quote