0

PHP Connect to MySQL...

When I try to connect my PHP to MySQL and run it using MAMP it gives me an error message? I can create variables etc however I can't actually use any other code otherwise it gives me the error?

28th Dec 2016, 3:11 PM
Thomas John
Thomas John - avatar
4 odpowiedzi
+ 1
what is the error you get?
28th Dec 2016, 3:36 PM
seamiki
seamiki - avatar
+ 1
then it could be related to permissions granted for your db or user. try to crreate a database under the root user and check if you get the same error when trying to access it. of course you will have to change the db access credential in your php code. hope it helps. try also some testing from phpMyAdmin
29th Dec 2016, 5:45 PM
seamiki
seamiki - avatar
0
It is something to do with localhost being unable to handle the request?
28th Dec 2016, 4:32 PM
Thomas John
Thomas John - avatar
0
Thanks, I'll have to try it :)
30th Dec 2016, 3:03 PM
Thomas John
Thomas John - avatar