I am new to Drupal and I am experiencing the same problem. mysql_query($sho) or die(mysql_error()) Īfter all this, I have the following new error message: Access denied for user (using password: YES). $grt = 'GRANT ALL ON *.* TO mysql_query($grt) or die(mysql_error()) Ħ. if(!mysql_connect (MYSQL_HOST, MYSQL_USER, MYSQL_PASS)) mysql_select_db(MYSQL_DB) Ĩ. I will show you the improved code and the new error message I got as below:Ħ. Swhisa_swhisa (Privileges: ALL PRIVILEGES)Īnd again I wrote the code inside the connecttodb.php just after connecting, as you recommended. And finally I tried everything with an query string, the last php code I showed you. I have given you the php connection code. That is the process.īelow is what I have been doing. Once we are connected to this panel, I have access to the MySql database through the username and password using and php code. Since we are client to the and we get the access through the username and pasword.
Recently, we registered for cPanel and I am assigned to administer the web-based database management system.