anaisabel Posted August 15, 2015 Share Posted August 15, 2015 Hi, Thanks for stoping by and reading. I am quite new to php and mysql. I generated a small app with php and mysql that works locally (I use xampp). I have an account and a webpage hosted in 1freehosting.com I wanted to share the app online so I took all my php & html files and copied them to my hosting space in 1freehosting. I also created a new database and user in 1freehosting that contained all the required fields. Now the php scripts seem to work fine, but I cannot manage to access the databases from my php script. In principle the user and password must be correct (since I can access phpmyadmin with it, and select from my database, and create fields and so on). However I get the error Access denied for user 'u211641509_root'@'srv14.main-hosting.com' (using password: YES) You can check the page in http://www.anaisabel.tk/spread-the-petition/ if you want. Any help will be appreciated. I feel I am missing something obvious, but I cannot sort it. Thank you! Ana Quote Link to comment https://forums.phpfreaks.com/topic/297799-accessing-my-databases-in-my-server/ Share on other sites More sharing options...
requinix Posted August 15, 2015 Share Posted August 15, 2015 It seems like you simply have the wrong username and/or password. Is there a place where you configure user accounts? Does it say that actual username? Sure you have the right password? You are connecting to the database from code running on hosted site, right? Not locally? Quote Link to comment https://forums.phpfreaks.com/topic/297799-accessing-my-databases-in-my-server/#findComment-1518899 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.