Php mysql connection to the Cpanel db -


how connect cpanel db localhost. know connect localhost. need connect server. trying this

<?php mysql_connect("208.91.199.141","username","password") or die(mysql_error()); mysql_select_db("db"); ?> 

i error

warning: mysql_connect() [function.mysql-connect]: access denied user 'glansade'@'49.206.54.187' (using password: yes) in c:\xampp\htdocs\calendar\db_server.php on line 2 access denied user 'glansade'@'49.206.54.187' (using password: yes).

how solve this....? please me. thanks

go remotemysql cpanel

you have add %.%.

then able connect remote db.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -