• Hi,
    I have a problem with database connection. I have to tell you the whole story. Sorry that it is long.

    I always start building a wordpress site on my computer local host/ Mamp. I put localhost:8889 as DB-Host in the config.php file, and make my database in PhpMyadmin of Mamp. Everything works OK, until I want to move the database to online server for actual site. Then I have problem. The actual site url shows localhost:8888/xxxx (whatever I have named the site on my local host).

    Since I don’t understand the database connection, I always have to call the host server and ask them to connect the database correctly. And they usually do, they do something secretly and don’t tell me what they have done, so I learn what to do next time. Fine, it has worked for me to get their help. Until this time, that Telus host provider couldn’t help me.

    So, I figured if I go to to phpMyadmin and change the url in the option table form https://localhost:8888/xxx to the url of actual site online, it should do it. Well, almost did it, but then my Mamp screwed up. now when I open my mamp, it gives me error 403, (Forbidden You don’t have permission to access /MAMP/ on this server.
    Apache/2.0.63 (Unix) PHP/5.3.2 DAV/2 Server at localhost Port 8888)

    But now, even with this error, when I go to my localhost site, the url in general setting is the actual site https://caaXXX.com instead of https://localhost:8888/XXX. now even more strange, when I change it to https://localhost:8888/XXX, the actual site online goes whacky and connects to localhost:8888.

    This is very bizarre to me. If anyone knows what is going on, please help me and make me understand how to fix this for the love of GOD ??

    Thanks all database and wordpress experts.
    Helen

Viewing 5 replies - 1 through 5 (of 5 total)
  • Start by reviewing Moving_WordPress.

    Thread Starter Helen-kh

    (@helen-kh)

    Thanks ??

    I have basically moved it OK to online server, but my mamp doesn’t show, and gives me error. Somehow these two are connected together. Whatever change I make in one site it affects the other one, even though one is online and one is on my local server.

    That is my puzzle and I need to get my mamp back.

    Any idea is appreciated!

    See the section entitled “Moving WordPress to a New Server”.

    Thread Starter Helen-kh

    (@helen-kh)

    I am sorry, but I can’t get an answer to my problem by reading that document, maybe I don’t understand it. But my problem now is not moving the wordpress site to a new server, but how to get my mamp work again and disconnect these two from each other.

    Does .htaccess have anything to do with it?
    Whatever it is, it must be somewhere on my computer.

    Thread Starter Helen-kh

    (@helen-kh)

    I have discovered that the two databases are not connected to each other, it just seemed like it. My mistake! But Mamp is not working and is giving the same 403 error.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Database connection problem/ on mamp and actual server’ is closed to new replies.