[OpenSIPS-Users] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock
Vlad Paiu
vladpaiu at opensips.org
Wed Dec 7 14:43:36 CET 2011
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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
More information about the Users
mailing list