Hello,
I have two instances of mysql on my computer- so I had to change the mysql port on WAMP.
I successfully changed WAMP from 3306 to 3309. I modified the port values on my.ini, config.inc.php, php.ini. Cleared browser cache. And the 1045 Error which was showing went away.
Now I can access phpmyadmin ok - I can browse through, create db and all.
Now here is the main problem:
from within my code I have a db connection script which does a simple mysqli_connect(localhost, root, '', mydb1); call, but it keeps returning a 1045 Access denied for user root@localhost Error.
However, as I said earlier, I can open phpmyadmin on the browser. Any help will be really appreciated.
I have two instances of mysql on my computer- so I had to change the mysql port on WAMP.
I successfully changed WAMP from 3306 to 3309. I modified the port values on my.ini, config.inc.php, php.ini. Cleared browser cache. And the 1045 Error which was showing went away.
Now I can access phpmyadmin ok - I can browse through, create db and all.
Now here is the main problem:
from within my code I have a db connection script which does a simple mysqli_connect(localhost, root, '', mydb1); call, but it keeps returning a 1045 Access denied for user root@localhost Error.
However, as I said earlier, I can open phpmyadmin on the browser. Any help will be really appreciated.