Couldn't execute query. Access denied for user 'apache'@'localhost' (using password: NO) – SELECT *

QuestionsCouldn't execute query. Access denied for user 'apache'@'localhost' (using password: NO) – SELECT *
Ayax asked 7 years ago

Hello all… i am trying to set up the demo system but i am getting the message shown in the subject field.

Database and tables are created ok (as well as others in the site), according to

$dbhost = "localhost";
$dbuser = "porta_admin";
$dbpass = "(not shown of course)";
$dbname = "portalsms_com_mx_grid_demo";

System is contained in http://www.portalsms.com.mx/grid.
Connection performs ok according to
$conn = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);

Other mysql db systems within the site perform ok, so I have no clue why this is happening.

but from that point on, shown error happens.
Any comment will be appreciated.

1 Answers
Abu Ghufran answered 7 years ago

If you are using free version, it is compatible with mysql (not mysqli extension).
So you have to use mysql_connect() function in order to use.

If you wish to use mysqli, you can upgrade to premium/dev/enterprise license based on your need.

Compare Versions

Regards,

Your Answer

8 + 8 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?