Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : transfer wordpress from ampps to cpanel



Threaded Mode | Print  

 transfer wordpress from ampps to cpanel (4 Replies, Read 3548 times)
view
Group: Member
Post Group: Working Newbie
Posts: 76
Status:
Hello

This is my first time to use ampps.I`m finished with creating new wordpress website on localhost using ampps and website work perfect on localhost but when i zipped all from /www/ folder and export mysql from phpmyadmin and upload all that on new empty cpanel account i get this error on live server

Error establishing a database connection

I`m checked least 5 times all database login details and wp-confing.php file and all is ok.Than i enabled wp_debug and now get this error

Warning: mysql_connect(): Access denied for user 'hostmedi_H022J'@'localhost' (using password: YES) in /home/hostmedia/public_html/wp-includes/wp-db.php on line 1482

I`m tested mysql server on my cpanel server and he work without problems,i have other websites on same server who use mysql and there is no other problems,only with this website which is moved from ampps.

What can be a problem?
IP: --   

transfer wordpress from ampps to cpanel
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi,

Check if the database user has access to the database. You will need to assign the database to the database user.
IP: --   

transfer wordpress from ampps to cpanel
view
Group: Member
Post Group: Working Newbie
Posts: 76
Status:
That is checked lest 5 times
IP: --   

transfer wordpress from ampps to cpanel
view
Group: Member
Post Group: Working Newbie
Posts: 76
Status:
Problem is on my side :)


In old config.php,line for password looks this
define('DB_PASSWORD', '(xu5PaS4[8)');

When i transfered files to my cpanel server and created new database i also created new db user and new password,for example new password is MNjdhgURR3 and when i edited config.php i set my new password in line,like this
define('DB_PASSWORD', '(MNjdhgURR3)');

But my mistake is because old password have ( on start and ) on end.My problem is resolved when i type password to be like this
define('DB_PASSWORD', 'MNjdhgURR3');

It`s very stupid problem,and take me a lot of hours to figure where is the problem.Sorry for disturb you.

IP: --   

transfer wordpress from ampps to cpanel
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi,

We are glad to know that your issue has been resolved. Please let us know if you need any further assistance. We will be happy to help you.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is October 20, 2020, 3:07 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.191