PDA

View Full Version : MySQL Connection


Rusty
04-26-2001, 12:25 AM
Newbie here on MySQL. I created a database with the control panel. Does this take some time to create the database? (i get an error that says it can't find it) I gave it a name and then it added my logon name to the front of the name like this: signon_database name. Do I use this name or the original one I created?

Thanks in advance.

Rusty

eric418
04-27-2001, 02:20 PM
in CP, first create a database and a login name.

then assign the login name to the database. notice that the name of the db will have ur name in front of it.

like: eric_db1.

this is the name for ur db.

to connect to the db.

mysql_connect ("localhost", "login", "password");
mysql_select_db("eric_db1");

Rusty
04-27-2001, 04:17 PM
That worked perfect. Thanks for your help!!!

Rusty
www.dvkit.com