Hello,
You are connecting with the root username and password.
I see you have OpenSIPS configured this way :
modparam("usrloc",
"db_url","mysql://opensips:opensipsrw@localhost/opensips")
opensips is the username
opensipsrw is the password
Please make sure these are correct.
Regards,
Vlad Paiu
OpenSIPS Developer
On 12/07/2011 03:41 PM, M.Abdulaziz wrote:
Hello thank you for responding,
yes I can access mysql with the same credentials as follows:
/etc/init.d/mysqld start
Starting mysqld [OK]
mysql -u root -p
Enter password:xxxxxx
Welcome to mysql monitor.....
Use opensips;
.......
I can access the mysql only this way but when I try to run my code I always
get that error. Am I doing somthing wrong in my code??
Note that I searched for mysql.sock in my computer but I couldn't find it
any where
Best Regards,
--
View this message in context:
http://opensips-open-sip-server.1449251.n2.nabble.com/Can-t-connect-to-local-MySQL-server-through-socket-var-lib-mysql-mysql-sock-tp7056051p7070497.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users