Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2007
Posts: 363
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 363
Likes: 8
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 7.7.5
Release 20201027
Server OS Linux
Server Load 0.16
Web Server Apache/2.4.6
PHP Version 7.4.33
MYSQL Version 5.7.43
Database Size 1.85 GB
Joined: Oct 2007
Posts: 363
Likes: 8
Enthusiast
Enthusiast
Joined: Oct 2007
Posts: 363
Likes: 8
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 7.7.5
Release 20201027
Server OS Linux
Server Load 0.16
Web Server Apache/2.4.6
PHP Version 7.4.33
MYSQL Version 5.7.43
Database Size 1.85 GB
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
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
Test
by Phun - 05/28/2024 7:31 PM
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
1 members (Ruben), 362 guests, and 132 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)