News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

After moving to new host - SMF wont connect to database

Started by ASHA09, April 18, 2014, 03:55:55 PM

Previous topic - Next topic

ASHA09

Hi All, I require some help. I am a newb to running SMF or any type of forum software. I have followed the instructions (link provided below) for moving SMF to a new host and now I get the following error:

Access denied for user 'Database_Username'@'localhost' (using password: NO)

after running this test.php:

<?php

require('Settings.php');

mysql_connect($db_server, $db_user, $db_pass) or die(mysql_error());
mysql_select_db($db_name) or die(mysql_error());

?>



Instructions for moving to new host: http://wiki.simplemachines.org/smf/Hosting_-_How_do_I_move_my_SMF_forum_to_a_different_host

I have also run the repair_settings.php and inputted the correct details.

One thing I have noticed is when I go to CPanel > Databases > MySQL Databases I see the Database I have restored via myphpadmin. But do not see users.

Can someone please let me know what I have done incorrectly or something I can do to fix this issue.

I really would appreciate any help you can provide.

Thanks,
Ash

tumbleweed

 In cPanel down towards the bottom of the same area you are looking at your database info Create user using same info found in your settings.php And add that user to the DB.
G.C. SOLUTIONS - Hosting Quality Sites Since 2006. Experience Your Forums On A Whole New Level
Elastic Sites Stress Fast CPU/Ram Upgrades- More Info Here.
Reviews By SMF Forum Owners - Read Our Rev

ASHA09

OMG! 2 Days! LOL

I actually thought I did that... but I guess not.

Thank you so much! :)

Advertisement: