Koozali.org: home of the SME Server

sql database

gage

sql database
« on: February 15, 2002, 07:48:06 AM »
What is the Mysql database server address? I am trying to connect to a sql database but I figure out what directory it is in
Any Ideas

Rick

Re: sql database
« Reply #1 on: February 15, 2002, 05:34:29 PM »
You should not connect to a directory. You should connect to the localhost. The password is in the files /root/my.cnf

More info is on http://www.mysql.org

gage

Re: sql database
« Reply #2 on: February 16, 2002, 06:12:46 PM »
I could not find my.cnf in the root directory. But I did find it in the etc directory.
 Once I found it, I saw a place that had the user=**** for the user name. But could not find anything with a password. Ive looked through mysql.org and cant find anything on the subject. Is it me or are most of the linux manuals lousy. You would think they would have a topic on this in the setup docs.

Terry Brummell

Re: sql database
« Reply #3 on: February 16, 2002, 06:15:10 PM »
Do a ls-a in your root directory, you'll see it.  It's a hidden file.

gage wrote:
>
> I could not find my.cnf in the root directory. But I did find
> it in the etc directory.
>  Once I found it, I saw a place that had the user=**** for
> the user name. But could not find anything with a password.
> Ive looked through mysql.org and cant find anything on the
> subject. Is it me or are most of the linux manuals lousy. You
> would think they would have a topic on this in the setup docs.

Dan Brown

Re: sql database
« Reply #4 on: February 16, 2002, 06:22:41 PM »
It's actually .my.cnf (note the period at the beginning).

And no, I wouldn't particularly think this would be in the setup docs, as it's tangential to the distribution.  The only reason MySQL is included is for IMP, and that part is already set up.  If you want to do other things with it, that's fine, but you're on your own at that point.

gage

Re: sql database
« Reply #5 on: February 16, 2002, 06:31:41 PM »
Thank you for your help.  Is the user name supposed to be in there also? or do I need to add one to the template

Rick

Re: sql database
« Reply #6 on: February 16, 2002, 08:08:14 PM »
The username is: root