Connecting Tech Pros Worldwide Help | Site Map

Problem in mysql

Newbie
 
Join Date: Dec 2006
Posts: 1
#1: Dec 19 '06
Hi guys, i'm new member and i need help from you, i have a proble in mySQL especially in mysql_connect(localhost, username, password) function. I have no problem with localhost, the problem is in username and password how I am going to create them? that is problem to me, someone to help pls
ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#2: Dec 19 '06

re: Problem in mysql


In your MySQL setup you have defined users or not.
If not, logon as user 'root' and password 'whatever-you-set-it' and define your user.

If you don't know how to, it is easiest to get help online: go to the MySQL command line interface and give
Expand|Select|Wrap|Line Numbers
  1. mysql help create user
and a
Expand|Select|Wrap|Line Numbers
  1. mysql help grant
commands. That will show you how to define a user and how to give GRANTs to a user.

Ronald :cool:
Reply