Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3184

Unique 1045 Error (2 replies)

$
0
0
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.

Viewing all articles
Browse latest Browse all 3184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>