rkoelz Posted April 6, 2007 Posted April 6, 2007 I'm trying to install MediaWiki (version 1.6.7 because TCH isn't running PHP 5) and I'm getting the following error during setup. Any help or ideas would be appreciated. (I've modified the name in the error message for security reasons.) Thanks! Rick ...Generating configuration file... Database type: mysql Attempting to connect to database server as ***_rjones...success. Connected to 4.1.21-standard Error selecting database wikidb: 1044 Access denied for user '***_rjones'@'localhost' to database 'wikidb'
TCH-Bruce Posted April 6, 2007 Posted April 6, 2007 Did you create the database? Did you create a user? Did you add the user to the database? host = localhost; dbname = cpanelname_database-name dbuser = cpanelname_user-you-added-to-database password = password you created for the user
rkoelz Posted April 7, 2007 Author Posted April 7, 2007 Did you create the database? Did you create a user? Did you add the user to the database? host = localhost; dbname = cpanelname_database-name dbuser = cpanelname_user-you-added-to-database password = password you created for the user Yes I created the database Yes I created a user Yes I added the user to the database In the error message you can see that set up was able to connect to the database successfully, but 2 lines further down it wasn't able to select the database.
rkoelz Posted April 7, 2007 Author Posted April 7, 2007 Thanks Charlie... That did it - Successful Install!
TCH-Thomas Posted April 7, 2007 Posted April 7, 2007 Welcome to the forum, Rick. I have replaced your cpanelusername with *** in the post. Please do not not post user sensitive data in the forum.
rkoelz Posted April 7, 2007 Author Posted April 7, 2007 Welcome to the forum, Rick. I have replaced your cpanelusername with *** in the post. Please do not not post user sensitive data in the forum. If you will read the post closely you will notice that I already did that and stated so.
TCH-Bruce Posted April 7, 2007 Posted April 7, 2007 Welcome to the forum Rick When I posted this: host = localhost;dbname = cpanelname_database-name dbuser = cpanelname_user-you-added-to-database password = password you created for the user I guess I should have bolded the database name.
charle97 Posted April 7, 2007 Posted April 7, 2007 no, you need to tell them exactly what they need to do.
TCH-Thomas Posted April 8, 2007 Posted April 8, 2007 Hi Rick, Why I replaced the posted cpanel username with *** was for security reasons only. You posted a cpanel username that to me looked like it could very well be real since they are automatically generated. Even if it wasn´t your cpanel username it could very well have been someone else and no one would want it on it´s conscience that an account was hacked because user sensitive data was publically published. If you wanna discuss this further, please feel free to pm me. So to everyone who reads this in the future and are in need to post scripts or info, here in the forum, where sensitive info are included, do us all a favor, replace it with ***. Since the original problem have been solved and there are nothing more to discuss about this, I am closing this thread.
Recommended Posts