Mantis/MySQL from scratch: users?
Posted: 31 Jul 2005, 02:53
I'm trying to install MySQL and Mantis 1.0.0rc1 under OS X 10.3, but I'm having trouble figuring out the different username/password combinations that are required. There are Unix usernames (which I use to login to my computer), MySQL usernames (which I use to connect to MySQL), and Mantis usernames which are (I think) independent of the other two types.
Example: my MySQL installation has two users defined: one "root" on host "localhost" and one "root" on host "Daniel-Griscoms-Powerbook.local". Both have the same password (say, "XXXX"), and both have all permissions. I can start up the mysql tool using the command line "mysql -u root -pXXXX"; it starts up just fine, and I can peruse tables and everything.
Now, when I try to get Mantis running by loading "mantis/admin/install.php", the page shown asks for "Username (for Database)" (with a password), and "Admin Username (to create Database)" (with a password). It's pretty clear that I should supply a valid MySQL username/password for the first username/password, so I always put in "root"/"XXXX". The second username/password pair is a mystery, though. I've tried putting nothing in them, putting "root"/"XXXX", putting "administrator"/"root", and a host of other possible values. Every time I'm greeted with an error message: "Attempting to connect to database as admin -BAD- Does administrative user have access to the database?"
So, my questions:
- Do Mantis installations ever deal with Unix usernames? (I'm assuming the answer is "no"...)
- Does Mantis have its own system of usernames, separate from MySQL's and Unix's? (I'm assuming the answer is "yes"...)
- What MySQL usernames should exist before I try to install Mantis?
- What's the difference between the "Username (for Database)" and "Admin Username (to create Database)" fields on the install.php page?
Thanks,
Dan
P.S. Another, perhaps related issue: the "Print SQL Queries instead of Writing to the Database" checkbox on install.php seems to have no effect: I never see SQL code, and Mantis always seems to try to connect to the database.
Example: my MySQL installation has two users defined: one "root" on host "localhost" and one "root" on host "Daniel-Griscoms-Powerbook.local". Both have the same password (say, "XXXX"), and both have all permissions. I can start up the mysql tool using the command line "mysql -u root -pXXXX"; it starts up just fine, and I can peruse tables and everything.
Now, when I try to get Mantis running by loading "mantis/admin/install.php", the page shown asks for "Username (for Database)" (with a password), and "Admin Username (to create Database)" (with a password). It's pretty clear that I should supply a valid MySQL username/password for the first username/password, so I always put in "root"/"XXXX". The second username/password pair is a mystery, though. I've tried putting nothing in them, putting "root"/"XXXX", putting "administrator"/"root", and a host of other possible values. Every time I'm greeted with an error message: "Attempting to connect to database as admin -BAD- Does administrative user have access to the database?"
So, my questions:
- Do Mantis installations ever deal with Unix usernames? (I'm assuming the answer is "no"...)
- Does Mantis have its own system of usernames, separate from MySQL's and Unix's? (I'm assuming the answer is "yes"...)
- What MySQL usernames should exist before I try to install Mantis?
- What's the difference between the "Username (for Database)" and "Admin Username (to create Database)" fields on the install.php page?
Thanks,
Dan
P.S. Another, perhaps related issue: the "Print SQL Queries instead of Writing to the Database" checkbox on install.php seems to have no effect: I never see SQL code, and Mantis always seems to try to connect to the database.