creating users

Forum related to MySQL

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
dgbowen
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 01.11.2005, 22:33

creating users

Post by dgbowen »

Dear Friends,
I'm using Delphi 7.1 and MySQL 5.
I have been unable to connect. Delphi complains that the user is invalid and the database is unknown.

Does that mean that both user and database must exist before you can connect?
Thank you for your help in advance.

-Don
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Dear dgbowen,

First thing to do for you is getting your mysql server up and running. Once you have connected to the server using mysql.exe, I think you will be able to connect using zeoslib as well. I think you first need an introduction on Mysql. See mysql doc directory.

Succes,

Mark
Image
pol
Senior Boarder
Senior Boarder
Posts: 91
Joined: 13.10.2005, 08:19

Post by pol »

Hi!
A user has to exist before he can connect, evidently. You have to create him first. The easiest way to do that would be using MYSQL Administrator. Best to create the database right now too (under Catalogs) and grant the new user rights to it. Mark is right, now try it out with mysql.exe on the command line: mysql <new user> (-p if the user has a password). When mysql lets you in, write "use <database>" to see if the user has access to it.

HTH
Rüdiger
Post Reply