Posted March 14, 201410 yr Hello to all, I am just trying to established and TEST a simple to my MySQL test database using PHP via my firefox browser. I am able to connect using SSH and via terminal window on Fedora 20. I have created small php connection file so that I can test the connection. Code: <?php // Create connection $con=mysqli_connect("example.com","peter","abc123","my_db"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } ?> when I type in my 127.0.0.1/test.php file in my FIREFOX browser. I get a error message " Failed to connect to MySQL: Permission denied " Just trying to understand where I went wrong? any help is greatly appreciated. Continue reading...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.