Question:
Why my website is not working, after transferring my files to new host?
Tiron
2010-01-19 09:06:20 UTC
Hi,
My website's host provider dissapear, and I had no other option other than to buy a hosting from another host provider,but when I did upload my zipped files to the new host providers cpanel ,I found out that my website is not working and I do get this message:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'worldwid_wwprop'@'localhost' (using password: YES) in /home/worldwid/public_html/conn.php on line 32
Access denied for user 'worldwid_wwprop'@'localhost' (using password: YES)

Can someone help me with that ?Thank you
Three answers:
Synful Visions
2010-01-19 09:13:40 UTC
You have to change the password that the website uses to connect to the database.





Your provider can give you the correct password and username, and there should be a config file that contains the SQL settings within the website, usually in the root directory, but it can be in any folder.



EDIT: yes, you also have to import the data. But in this case, the error is actually an access denied, not that a table does not exist. You can't just copy a website from one location to another without moving the databse, updating DNS records, updating links, if required, etc.



EDIT: I'll do it for you, but I'll need a few things. FTP access to the server, the username and password for the database, and the backup database that needs to be migrated. Afterwards, you need to change the FTP password immediately.
2010-01-19 09:37:17 UTC
It is apparent that your Mysql database was locally installed before. Do you still have access to the old database, perphaps the backup files that you regularly created ?



Also your new host may not provide a local MySql database so it may be better to install the application afresh anyway.



Then you can just restore you backup database to the new database.









http://www.new-web-sites.com
cpcii
2010-01-19 09:14:30 UTC
have you set up your mysql database? Just uploading the files will not necessarily import your data. Do you have your old data exported as a zip file that your new host can import for you? Or do they have some sort of import program for you to run your data file from to import your data?


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...