4
Error [Xoops]: Unable to connect to database in file class/database/databasefactory.php line 34
I just recently got this error when I did a freash install of version 2.0.9.2. I couldn't connect to my database. It was an error in my part for not filling in the correct information during installation.
I went to this topic forum
https://xoops.org/modules/newbb/viewtopic.php?topic_id=8208&viewmode=flat&order=ASC&start=0 but I couldn't understand the technical mambo jumbo.
Here is what I did when I installed XOOPS in my web server.
1. I did was overwrite and upload all the .php files back to the server.
2. Went to MySql and made my database and added a user.
database: website
user: master
3. Ran the install wizard. When I got to the page where I had to fill in my info this is what i filled in.
NOTE: When I made my database I notice that my username for logging into my cpanel was included when i made a new database and username. EX. username is "ffff" make sure to include the ffff with your database and user.
Example:
Database: MySQL
Database: Hostname localhost
Database: Username ffff_master
Database Password: whatever
Database Name: ffff_website
Table Prefix: whatever
Use persistent connection? No
XOOPS Physical Path /xxxx/ffff/public_html/xxxx
XOOPS Virtual Path (URL)
http://www.domain.com/xxx After doing this I was able to connect to the database and complete the install.