paulieGB Posted June 20, 2009 Posted June 20, 2009 Hi, I have just changed my hosting company to - UK2.NET I saved my web site on my computer and have just uploaded it in filezilla in public.html folder. I now have this error message = Warning: mysql_connect() [function.mysql-connect]: Access denied for user '******'@'cpanel25.uk2.net' (using password: YES) in /home/thecardm/public_html/includes/functions/database.php on line 19 Unable to connect to database server! I think it is to do with the configure.php file I have tryed lots of different combinations in the file, i can't get the error to go away. Here is my configure.php file = <?php define('HTTP_SERVER', 'http://www.thecardmakingshop.com'); define('HTTPS_SERVER', 'http://www.thecardmakingshop.com'); define('ENABLE_SSL', false); define('HTTP_COOKIE_DOMAIN', 'www.thecardmakingshop.com'); define('HTTPS_COOKIE_DOMAIN', 'www.thecardmakingshop.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', '/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', 'F:/windows8/users/thecardm/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DB_SERVER', 'mySQL.thecardmakingshop.com'); define('DB_SERVER_USERNAME', '********'); define('DB_SERVER_PASSWORD', '********'); define('DB_DATABASE', 'thecardcom'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Can ayone help ? Paul
FIMBLE Posted June 20, 2009 Posted June 20, 2009 Is the database name correct for your new host, thought UK2 use localhost? Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
paulieGB Posted June 20, 2009 Author Posted June 20, 2009 thanks for the reply, It didn't work unfortunatley.
paulieGB Posted June 20, 2009 Author Posted June 20, 2009 my hosting company told me to change = define('DIR_FS_CATALOG', 'F:/windows8/users/thecardm/public_html/'); to = define('DIR_FS_CATALOG', '/public_html/'); still the same errors
paulieGB Posted June 20, 2009 Author Posted June 20, 2009 i have had a reply from my host and they have told me the corect username and database, when i use this and locahost as the DB_SERVER i get this error message = 1146 - Table 'thecardm_thecardm.configuration' doesn't exist select configuration_key as cfgKey, configuration_value as cfgValue from configuration [TEP STOP] any help ? Paul
♥geoffreywalton Posted June 20, 2009 Posted June 20, 2009 From what you said in the first post you have only copied over the file and not the contents of the db Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.