![]() The form below works perfect on my localhost and inputs data just greats.Ĭan anyone please help me adjust this one to work on the GoDaddy database. My other problem is that I want to set up a testing server in Dreamweaver for ny GoDaddy DB to test it out before uploading but cannot find any settings for it and doesn't work with the info that I put in this form for host etc. I have changed the actual details with capitals to show you. Can someone please take a look at this and tell me where I am going wrong. ![]() But to no joy, I cannot connect to the datbase despite using the correct login details so I am assuming it must be somehting I am doing wrong with the PHP coding. I have looked on their help section and used the example that they give. Now I need to adapt that same form to do exactly the same but input info in my database on GoDaddy. I have a connection to the database on localhost and the data from the form inserted into the datbase perfectly. I set up a testing server in Dreamweaver for the one on my laptop to try out an input info form and it worked perfectly. I have created an MySQL database on GoDaddy and a duplicate on my laptop with phpmyadmin. ![]() I am completely new to PHP and trying very hard to teach myself how to use it as I am stepping up to database websites. I am now changing the IP Address that I had added in this tool.Hello everyone and this is my first post as I am completely new to PHP but trying hard to pick it up. I found a flaw: In cPanel, Remote MySQL Database, I added the IP Address that my localhost server is, not my computer's IP Address, if that makes sense. Connecting remote server mysql database to localhost doesn't give any code.Can't connect to godaddy localhost is answered with the same code that I used except using the PDO api and not the mysqli api.Connecting to online MySQL database from localhost: I tried changing to the its ip address from the GoDaddy My Hosting Page, and this gave the same error.Connect to server database from localhost does not give the same error as me.Lastly, I put in this code as a mysql command into the mysql client from the XAMPP Control Panel, and this gave me the same exact error. So, I added 3306 to the end to no avail, for it gave me the same error. Since I know it is not a permissions problem, the next thing I did was use the PORT parameter. When I put this code in, instead of having 'localhost' as my host, which connects to the local MySQL server of XAMPP, it gives the following errorĬould not connect to MySQL: Access denied for user Info]' (using password: YES) $dbc = DB_USER, DB_PASSWORD, DB_NAME) OR die('Could not connect to MySQL: '. On cPanel - Remote MySQL® I have added the IP Address of my computer's localhost server. This user has all privileges on both the remote and the localhost. Set the database access information as constants To do this, I put the IP Address given to me in the GoDaddy hosting page as the host parameter of the mysqli_connect() function. This is an inefficient process, so now I want to use PHP to connect to the GoDaddy server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |