sorry for your trouble
I already solved it, it was a mysql privilege error preventing the 
connection and fix it 
thanks

On Wednesday, November 30, 2016 at 10:48:03 AM UTC-5, David Aronchick wrote:
>
> Can you paste in your deployment and service definitions?
> On Wed, Nov 30, 2016 at 07:14 Ioannis Canellos <[email protected] 
> <javascript:>> wrote:
>
>> An example of how you can use mysql with deployment, service and more can 
>> be found here: 
>> https://github.com/fabric8io/kubernetes-zipkin/tree/master/mysql/src/main/fabric8
>>
>> On Wed, Nov 30, 2016 at 5:06 PM, Montassar Dridi <[email protected] 
>> <javascript:>> wrote:
>>
>>> Usually I create one mysql pod and connect it to my java application pod 
>>> buy getting the sql pod ip address and replace my db_uri as follow 
>>> jdbc:mysql://MYSQL-POD-IP:3306/ THEN THE CONNECTION WILL BE RUNNING 
>>> FINE WITH NO ISSUE. but then I tried to create MYSQL pod using Deployments 
>>> and replica sets following the link bellow and then when I tried to replace 
>>> the db_uri as follow jdbc:mysql://SERVICE-CLUSTER-IP:3306/ NO 
>>> CONNECTION WAS ACCOMPLISHED. Also I exposed my deployment with a service 
>>> and used the following address and none of them worked
>>>  jdbc:mysql://SERVICE-NAME:3306/
>>>  jdbc:mysql://SERVICE-NAME-default.svc.cluster.local:3306/
>>>
>>>
>>> https://github.com/kubernetes/kubernetes/tree/master/examples/mysql-wordpress-pd#gce-persistent-disk
>>>
>>> How am I suppose to connect to the sql pod through the deployment 
>>> service.
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Kubernetes user discussion and Q&A" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> To post to this group, send email to [email protected] 
>>> <javascript:>.
>>> Visit this group at https://groups.google.com/group/kubernetes-users.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> *Ioannis Canellos*
>>
>> *Blog: http://iocanel.blogspot.com <http://iocanel.blogspot.com/>*
>> *Twitter: iocanel*
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Kubernetes user discussion and Q&A" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/kubernetes-users.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to