Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2007
Posts: 531
Likes: 13
Addict
Addict
Joined: Oct 2007
Posts: 531
Likes: 13
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
https://www.stovebolt.com/ubbthreads/ubbthreads.php

Server Information
UBB.threads Version 8.0.0
Release 20240826
Server OS Linux
Server Load 0.11
Web Server Apache/2.4.37
PHP Version 8.3.11
MYSQL Version 8.0.39
Database Size 1.82 GB
Joined: Oct 2007
Posts: 531
Likes: 13
Addict
Addict
Joined: Oct 2007
Posts: 531
Likes: 13
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
https://www.stovebolt.com/ubbthreads/ubbthreads.php

Server Information
UBB.threads Version 8.0.0
Release 20240826
Server OS Linux
Server Load 0.11
Web Server Apache/2.4.37
PHP Version 8.3.11
MYSQL Version 8.0.39
Database Size 1.82 GB
Joined: Dec 2003
Posts: 1,798
Likes: 2
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,798
Likes: 2
Glad you got it working, I came by here since I'm home now to check this out for you smile


- Allen
- ThreadsDev | PraiseCafe

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
0 members (), 166 guests, and 137 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)