Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
5 registered (Stan, Dunny, driv, SteveS, id242), 34 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 12/25/03
Posts: 125
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#199170 - 10/12/07 12:46 PM What's the correct database permissions?
Baldeagle Offline
journeyman
Registered: 10/12/07
Posts: 77
I'm working on upgrading from the old perl-based bb to the new ubbthreads. I have the files installed and the perms set, but I'm running into a problem with the database login.

When I setup mysql, I removed all the extra accounts that come with it (with no passwords!) and left only root@localhost. Now I've created a new account "ubb@localhost" to run the ubbthreads board. Here's the perms for that account (the password is deliberately munged):
mysql> show grants for 'ubb'@'localhost';
+------------------------------------------------------------------------------------------------------------+
| Grants for ubb@localhost |
+------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'ubb'@'localhost' IDENTIFIED BY PASSWORD '*123456789' |
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX ON `ubbthreads`.* TO 'ubb'@'localhost' |
+------------------------------------------------------------------------------------------------------------+

Mysql is only listening on unix sockets (my.cnf has --skip-networking set). I can login to the db as root just fine (from the install page), but the login for ubb fails. Yet I can login to the db from the console, using the ubb account, with no problem.

071012 11:23:29 3 Connect Access denied for user 'ubb'@'localhost' (using password: YES)
071012 11:23:49 4 Connect Access denied for user 'ubb'@'localhost' (using password: YES)
071012 11:24:17 5 Connect ubb@localhost on
5 Query select @@version_comment limit 1
071012 11:24:23 5 Query show databases
071012 11:24:29 5 Quit

What privileges does this user need in order to run ubbthreads?
_________________________
The Stovebolt Geek
Stovebolt.com
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#199180 - 10/12/07 06:50 PM Re: What's the correct database permissions? [Re: Baldeagle]
Baldeagle Offline
journeyman
Registered: 10/12/07
Posts: 77
Responding to my own post......the problem was that one of the characters that I used in the password was not being properly quoted before being submitted to the db. Once I changed the password, the user "ubb" was able to pass all the tests.

Here's the final privileges of that user (password munged as before):
mysql> show grants for ubb@localhost;
+------------------------------------------------------------------------------------------------------------+
| Grants for ubb@localhost |
+------------------------------------------------------------------------------------------------------------+
| GRANT USAGE ON *.* TO 'ubb'@'localhost' IDENTIFIED BY PASSWORD '*123456789' |
| GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON `ubbthreads`.* TO 'ubb'@'localhost' |
+------------------------------------------------------------------------------------------------------------+
_________________________
The Stovebolt Geek
Stovebolt.com
Top
#199199 - 10/13/07 12:34 AM Re: What's the correct database permissions? [Re: Baldeagle]
AllenAyres Offline

Registered: 12/29/03
Posts: 1995
Loc: Texas
Glad you got it working, I came by here since I'm home now to check this out for you \:\)
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Due Date Calculator-Calculate When Your Baby is Due
by StewartMyduedate
12:54 AM
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
Forum Stats
10491 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image